mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 03:32:22 +00:00
12 lines
190 B
Text
12 lines
190 B
Text
|
fun f<T>(x: T, y: T) {}
|
||
|
|
||
|
fun failIncompatibleTypesForT() {
|
||
|
return f(32, "");
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr T is both int and slice for generic function `f<T>`
|
||
|
@stderr f(32
|
||
|
*/
|