lang: Port TestAstFunc1 to txtar format
This commit is contained in:
12
lang/interpret_test/TestAstFunc1/shadowing2.txtar
Normal file
12
lang/interpret_test/TestAstFunc1/shadowing2.txtar
Normal file
@@ -0,0 +1,12 @@
|
||||
-- main.mcl --
|
||||
# this should be okay, because var is shadowed
|
||||
$x = "hello"
|
||||
if true {
|
||||
$x = "world" # shadowed
|
||||
test $x {}
|
||||
}
|
||||
-- OUTPUT --
|
||||
Edge: str("world") -> var(x) # var:x
|
||||
Vertex: bool(true)
|
||||
Vertex: str("world")
|
||||
Vertex: var(x)
|
||||
Reference in New Issue
Block a user