Files
c3c/test/test_suite/generic/generic_resolution_1402.c3t
2026-01-18 00:33:43 +01:00

33 lines
442 B
Plaintext

// #target: macos-x64
module playground::bug <Ty>;
import std::io;
struct Foo
{
Ty x;
}
fn void Foo.print_it(&self)
{
io::printf("Method %s\n", self.x);
}
module playground::bug <Ty>;
import std::io;
macro void print_it(...)
{
io::printn("Macro 456");
}
module playground;
import playground::bug;
alias MyFoo = Foo{int};
fn void main(String[] args)
{
MyFoo foo = { 123 };
foo.print_it();
bug::print_it{int}();
}