Update test.

This commit is contained in:
Christoffer Lerno
2026-01-29 17:51:50 +01:00
parent 163976f85f
commit 534dd42472

View File

@@ -1,11 +1,11 @@
module test2;
import test3;
struct Bar @if($defined(Foo.b)) // #error: There might be a method 'b' for 'Foo', but methods for the type have not yet been completely registered, so this yields an error
struct Bar @if($defined(Foo.b)) // #warning: There might be a method 'b' for 'Foo', but methods for the type have not yet been
{
int a;
}
struct Bar2 @if($defined((Foo){}.b)) // #error: There might be a method 'b' for 'Foo', but methods have not yet been completely registered, so analysis fails.
struct Bar2 @if($defined((Foo){}.b)) // #warning: There might be a method 'b' for 'Foo', but methods have not yet been completely
{
int a;
}