mirror of
https://github.com/erg-lang/erg.git
synced 2025-12-23 05:36:48 +00:00
12 lines
221 B
Python
12 lines
221 B
Python
arr = [[1, 2], [3, 4]]
|
|
print! arr[0][2] # ERR
|
|
print! arr[2][0] # ERR
|
|
|
|
dict = {"a": {"a": 1}, "b": {"b": 2}}
|
|
print! dict["c"]["a"] # ERR
|
|
print! dict["a"]["c"] # ERR
|
|
|
|
ab = if True:
|
|
do "a"
|
|
do "b"
|
|
_ = [1, 2, ab] # NG
|