We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depending on the order of function declarations, impala emits correct error messages or segfaults.
Correct error message:
fn a(a: i32) -> () { } fn b() -> () { } fn main() -> () { a(b) }
test.impala:4 col 7 - 8: error: mismatched types: expected 'i32' but found 'fn(fn())' as argument type
Segfault:
fn a(a: i32) -> () { } fn main() -> () { a(b) } fn b() -> () { }
Assertion failed: ((!r || dynamic_cast<L*>(r)) && "cast not possible"), function scast, file thorin/src/thorin/util/cast.h, line 26. Abort trap: 6
In both cases, the error message should be returned.
The text was updated successfully, but these errors were encountered:
Same problem with the following code:
struct S { i: i16 } fn main(s: S) -> i32 { if s.i > 0 { 42 } else { 23 } }
Types (Segfault in Codegen):
fn main(s: S) -> i32 { if s.i > 0 { 42 } else { 23 } } struct S { i: i16 }
Sorry, something went wrong.
bug fixes for issue #44
108f7d3
leissa
No branches or pull requests
Depending on the order of function declarations, impala emits correct error messages or segfaults.
Correct error message:
Segfault:
In both cases, the error message should be returned.
The text was updated successfully, but these errors were encountered: