You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expecting this code to compile, but instead it gives an error: Invalid declaration type 'test_alias_1'
main.odin:
packagemaintest_alias_2 :: test_alias_1// Invalid declaration type 'test_alias_1'main :: proc() {}
test.odin:
packagemaintest_1 :: proc(val: int) {}
test_2 :: proc(val: f32) {}
test :: proc {test_1, test_2}
test_alias_1 :: test
It's a very particular setup: you must have two files and the alias must point to a procedure group. I haven't been able to trigger the bug any other way.
Workarounds:
move test_alias_2 to test.odin
move test_alias_1 to main.odin
Report
Odin: dev-2022-09:796c51ef
OS: Windows 11 Professional (version: 21H2), build 22000.978
CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
RAM: 32605 MiB
The text was updated successfully, but these errors were encountered:
Summary
Expecting this code to compile, but instead it gives an error:
Invalid declaration type 'test_alias_1'
main.odin
:test.odin
:It's a very particular setup: you must have two files and the alias must point to a procedure group. I haven't been able to trigger the bug any other way.
Workarounds:
test_alias_2
totest.odin
test_alias_1
tomain.odin
Report
The text was updated successfully, but these errors were encountered: