9 lines
131 B
Plaintext
9 lines
131 B
Plaintext
// ERROR:7:generic
|
|
unit badinfer;
|
|
|
|
fn id(comptime T: type, value: T) -> T { return value; }
|
|
|
|
fn bad() -> i32 {
|
|
return id(7);
|
|
}
|