mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Resolving a missing property on a const enum with inline, reached an assert #2597.
This commit is contained in:
12
test/test_suite/enumerations/enum_no_inline_property.c3
Normal file
12
test/test_suite/enumerations/enum_no_inline_property.c3
Normal file
@@ -0,0 +1,12 @@
|
||||
module test;
|
||||
enum MyEnum : const inline short
|
||||
{
|
||||
ITEM1,
|
||||
ITEM2,
|
||||
}
|
||||
|
||||
fn int main(String[] args)
|
||||
{
|
||||
$typefrom("MyEnum").oops; // #error: No method or inner struct/union 'MyEnum.oops'
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user