Allow generics over distinct types #2216.

This commit is contained in:
Christoffer Lerno
2025-06-16 23:16:35 +02:00
parent f0bd93d1f0
commit 779f548a00
3 changed files with 51 additions and 15 deletions

View File

@@ -0,0 +1,23 @@
// #target: macos-x64
module test;
import test1;
typedef Foo = int;
fn void main()
{
Foo $f = 1;
test1::foo{$f}();
}
module test1 {FOO};
fn void foo() {}
/* #expect: test.ll
define void @test.main() #0 {
entry:
call void @"test1$test.Foo$1$.foo"()
ret void
}
declare extern_weak void @"test1$test.Foo$1$.foo"() #0