mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- has_tagof on tagged lambdas returns false #2432
This commit is contained in:
14
test/unit/regression/function_tag.c3
Normal file
14
test/unit/regression/function_tag.c3
Normal file
@@ -0,0 +1,14 @@
|
||||
module function_tag;
|
||||
|
||||
macro bool @has_tagof_1(#function)
|
||||
{
|
||||
return #function.has_tagof("some-tag");
|
||||
}
|
||||
|
||||
fn void tagged_function() @tag("some-tag", true) {}
|
||||
|
||||
fn void function_tag() @test
|
||||
{
|
||||
assert(@has_tagof_1(tagged_function));
|
||||
assert(@has_tagof_1(fn void() @tag("some-tag", true) {} ));
|
||||
}
|
||||
Reference in New Issue
Block a user