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
-> $int
Odin: dev-2024-07-nightly:7237f9c OS: Windows 10 Professional (version: 22H2), build 19045.4412 CPU: AMD Ryzen 5 5600 6-Core Processor RAM: 16305 MiB Backend: LLVM 18.1.8
odin check main.odin -file should fail with a meaningful message indicating $int is nonsensical.
'odin check main.odin -file' succeeds but 'odin build main.odin -file' fails with message ...Odin\Odin\src\llvm_backend_general.cpp(1819): Assertion Failure: type != t_invalid
type != t_invalid
odin check main.odin -file then odin build main.odin -file
main.odin:
package main main :: proc() { } // main triangle :: proc(n: int) -> $int { return n*(n+1)/2 }
The text was updated successfully, but these errors were encountered:
However if we add
run :: proc() -> int { return triangle(1) }
then it is detected, so 'odin check' only detects this if the procedure with parapoly return value is called somewhere.
Sorry, something went wrong.
This is expected behavior, parapoly procedures must be called for them to be checked.
However, the assertion failure that happens after you do use it is a bug so I will leave this open for that.
No branches or pull requests
Context
Odin: dev-2024-07-nightly:7237f9c
OS: Windows 10 Professional (version: 22H2), build 19045.4412
CPU: AMD Ryzen 5 5600 6-Core Processor
RAM: 16305 MiB
Backend: LLVM 18.1.8
Expected Behavior
odin check main.odin -file should fail with a meaningful message indicating $int is nonsensical.
Current Behavior
'odin check main.odin -file' succeeds but 'odin build main.odin -file' fails with message
...Odin\Odin\src\llvm_backend_general.cpp(1819): Assertion Failure:
type != t_invalid
Steps to Reproduce
odin check main.odin -file
then
odin build main.odin -file
main.odin:
The text was updated successfully, but these errors were encountered: