Commit 024ebe6
fix(compiler): do not copy expression type into output AST variables
The `DeclareVarStmt` constructor has some logic that takes the type from its initializer. This is incorrect, because if the initializer is a function, it'll take its return type. These changes remove the fallback logic altogether since it's misleading.
(cherry picked from commit 1879be0)1 parent c3e8f29 commit 024ebe6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1614 | 1614 | | |
1615 | 1615 | | |
1616 | 1616 | | |
1617 | | - | |
| 1617 | + | |
1618 | 1618 | | |
1619 | 1619 | | |
1620 | 1620 | | |
| |||
0 commit comments