zackradisic / aussieplusplus

Programming language from down under
aussieplusplus.vercel.app
609 stars 15 forks source link

thread 'main' panicked at 'Unable to resolve var' #28

Closed bbrk24 closed 2 years ago

bbrk24 commented 2 years ago

Perhaps a mistyped variable name should give a more readable error message than this?

thread 'main' panicked at 'Unable to resolve var: Var { ident: Ident { name: "h", line: 11 }, scope_distance: 4294967295 }', src/resolver.rs:211:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Hitting "Run" a second time without fixing the issue also yields the thread panicked while panicking. error mentioned in #16.

zackradisic commented 2 years ago

Fixed!