Compare commits

..

No commits in common. "polymorphic-function" and "main" have entirely different histories.

3 changed files with 740 additions and 840 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,9 @@
struct SimplePolymorphic'$T' { struct SimplePolymorphic[$T] {
member: T, member: T,
} }
fn[cc(.c)] main[export]() s32 { fn[cc(.c)] main[export]() s32 {
>s: SimplePolymorphic's32' = { >s: SimplePolymorphic[s32] = {
.member = 0, .member = 0,
}; };
return s.member; return s.member;

View File

@ -1,7 +0,0 @@
fn polymorphic'$T'(arg: T) T {
return arg;
}
fn[cc(.c)] main[export]() s32 {
return polymorphic's32'(0);
}