Minor update to generics2 test

This commit is contained in:
Mattia Giambirtone 2022-11-28 18:27:04 +01:00
parent 540feb0c91
commit 0ed67cff1b
1 changed files with 2 additions and 3 deletions

View File

@ -5,9 +5,8 @@ fn identity(x: int32): int32 {
}
# No call is necessary for the compiler to detect the error:
# generics are type checked at declaration time!
fn nope[T: int32 | int16](x: T) {
return identity(x);
}
nope(5'i16);