mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
14 lines
334 B
Text
14 lines
334 B
Text
|
fun acceptMutateNullableTensor(mutate self: (int, int)?) {
|
||
|
}
|
||
|
|
||
|
fun cantModifyTupleIndexWithTypeTransition() {
|
||
|
var t = [1, null];
|
||
|
t.1.acceptMutateNullableTensor();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr can not call method for mutate `(int, int)?` with object of type `null`
|
||
|
@stderr because mutation is not type compatible
|
||
|
*/
|