mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-31 08:54:13 +00:00
Fix type ascription bugs
This commit is contained in:
parent
5aae4a69a5
commit
aacad4fc8e
7 changed files with 79 additions and 8 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue