mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
16 lines
169 B
Python
16 lines
169 B
Python
a = if True:
|
|
do 1
|
|
do 2
|
|
b = if False:
|
|
do 1
|
|
do 2
|
|
assert a == 1
|
|
assert b == 2
|
|
|
|
c = if True:
|
|
do 1
|
|
d = if False:
|
|
do 1
|
|
|
|
assert c == 1
|
|
assert d == None
|