Files
mgmt/lang/interpret_test/TestAstFunc1/shadowing2.txtar
2023-06-01 16:56:44 -04:00

13 lines
229 B
Plaintext

-- 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)