mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Attrdef eval environment lacked rtype, causing error on invalid args #2797
This commit is contained in:
4
test/test_suite/attributes/attr_eval_with_return.c3
Normal file
4
test/test_suite/attributes/attr_eval_with_return.c3
Normal file
@@ -0,0 +1,4 @@
|
||||
attrdef @Aa(x) = @tag("", @pool() { return; }); // #error: Expected a constant value here, usage is: '@tag(name, value)'
|
||||
|
||||
fn void a() @Aa({})
|
||||
{}
|
||||
Reference in New Issue
Block a user