blob: 6aa863c05f75bcfd60a638e9209908db0f25301b (
plain)
1
2
3
4
5
6
7
8
9
|
const array: Array = [0]
const dictionary := {1: 2}
func test():
Utils.check(array.is_read_only() == true)
Utils.check(str(array) == '[0]')
Utils.check(dictionary.is_read_only() == true)
Utils.check(str(dictionary) == '{ 1: 2 }')
print('ok')
|