Files
c3c/test/test_suite/generic/generic_with_method_ad_hoc.c3t

12 lines
134 B
Plaintext

import std;
struct Foo <Type> { int a; }
fn void Foo.test(self) @if(Type.sizeof > 4)
{ }
fn int main()
{
Foo{int} x;
return 0;
}