Fix type ascription bugs

This commit is contained in:
Shunsuke Shibayama 2022-09-26 14:50:28 +09:00
parent 5aae4a69a5
commit aacad4fc8e
7 changed files with 79 additions and 8 deletions

View file

@ -1619,7 +1619,10 @@ impl CodeGenerator {
Expr::Compound(chunks) => {
self.emit_frameless_block(chunks, vec![]);
}
// Dict, Decl
Expr::TypeAsc(tasc) => {
self.emit_expr(*tasc.expr);
}
// Dict,
other => {
self.errs.push(CompileError::feature_error(
self.cfg.input.clone(),