Files
c3c/test/test_suite/methods/method_resolution_order.c3
Christoffer Lerno f3b71ed7eb - $$MASK_TO_INT and $$INT_TO_MASK to create bool masks from integers and back.
- Fix bug when creating bool vectors in certain cases.
2025-12-25 20:55:11 +01:00

27 lines
501 B
Plaintext

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
{
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.
{
int a;
}
module test3;
struct Foo
{
int a;
}
module test;
import test2;
import test3;
fn int main()
{
Bar b;
return 0;
}