Files
c3c/test/test_suite/methods/method_resolution_order.c3
Christoffer Lerno 4e129d4ae2 Fix test.
2026-01-30 13:18:56 +01:00

27 lines
485 B
Plaintext

module test2;
import test3;
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)) // warning: There might be a method 'b' for 'Foo', but methods have not yet been completely
{
int a;
}
module test3;
struct Foo
{
int a;
}
module test;
import test2;
import test3;
fn int main()
{
Bar b; // #error: 'Bar' could not be found, did you spell it right
return 0;
}