Summary
Expecting this code to compile, but instead it gives an error: Invalid declaration type 'test_alias_1'
main.odin:
package main
test_alias_2 :: test_alias_1 // Invalid declaration type 'test_alias_1'
main :: proc() {}
test.odin:
package main
test_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
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_2totest.odintest_alias_1tomain.odinReport