The compiler doesn't always emit an error if a type can't be fully inferred #761
Labels
accepting contributions
Issues that are suitable to be worked on by anybody, not just maintainers
bug
Defects, unintended behaviour, etc
compiler
Changes related to the compiler
Please describe the bug
When a type can't be fully inferred, the compiler is supposed to emit an error. This doesn't always happen though, such as for the following code snippet:
Since
foo
isn't used in any meaningful way, its type isn't inferred. An error does pop up if we (for example) try to unwrap theOption
usingfoo.get
.Operating system
Fedora
Inko version
main
The text was updated successfully, but these errors were encountered: