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
Odin: dev-2024-12-nightly:cf53404
OS: Windows 10 Professional (version: 22H2), build 19045.5247
CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz
RAM: 32440 MiB
Backend: LLVM 18.1.8
Expected Behavior
I expect my confused butchering of the language to not literally butcher the compiler.
Expected warning (see snippet below):
Unhandled enumerated array cases:
North
East
South
West(checker)
and
Expected a constant enum of type 'Direction' as an array field(checker)
Current Behavior
Improperly defining an enumerated array and then indexing it in the same file will cause an assertion failure before the compiler manages to warn the user of their error.
Context
Expected Behavior
I expect my confused butchering of the language to not literally butcher the compiler.
Expected warning (see snippet below):
and
Current Behavior
Improperly defining an enumerated array and then indexing it in the same file will cause an assertion failure before the compiler manages to warn the user of their error.
Odin/src/check_expr.cpp
Lines 4945 to 4947 in ad99d20
Steps to Reproduce
Here is a snippet that triggers the failure:
The text was updated successfully, but these errors were encountered: