mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
11 lines
256 B
Text
11 lines
256 B
Text
fun takeInvalidTuple(t: [int, (int, builder), int]) {
|
|
}
|
|
|
|
fun main() {
|
|
takeInvalidTuple([1, (2, beginCell()), 0]);
|
|
}
|
|
|
|
/**
|
|
@compilation_should_fail
|
|
@stderr a tuple can not have `(int, builder)` inside, because it occupies 2 stack slots in TVM, not 1
|
|
*/
|