mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 03:32:22 +00:00
14 lines
267 B
Text
14 lines
267 B
Text
|
fun getTupleLastGetter<X>(): tuple -> X {
|
||
|
return tupleLast<X>;
|
||
|
}
|
||
|
|
||
|
fun failTypeMismatch() {
|
||
|
var t = createEmptyTuple();
|
||
|
var c: cell = getTupleLastGetter<int>()(t);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr can not assign `int` to variable of type `cell`
|
||
|
*/
|