- has_tagof on tagged lambdas returns false #2432

This commit is contained in:
Christoffer Lerno
2025-08-23 23:41:32 +02:00
parent a69ee59b82
commit 9bf933ae31
4 changed files with 23 additions and 2 deletions

View 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) {} ));
}