Type checker incorrectly allows passing of non-pointer values to pointers #758
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 passing non-pointer values, such as a
Foo
orref Foo
, the type checker allows such values to be passed when aPointer[T]
is expected:This should produce a compile-time error, but it doesn't.
We should disallow passing anything to a
Pointer
unless the value itself is already a pointer.Operating system
Fedora
Inko version
main
The text was updated successfully, but these errors were encountered: