Files
mgmt/lang/interpret_test/TestAstFunc1/shadowing2.txtar
James Shubin 28f5b8331a lang: funcs: structs: Improve naming
These could print nicer for debugging.
2024-12-08 16:24:42 -05:00

11 lines
195 B
Plaintext

-- main.mcl --
# this should be okay, because var is shadowed
$x = "hello"
if true {
$x = "world" # shadowed
test "${x}" {}
}
-- OUTPUT --
Vertex: const: bool(true)
Vertex: const: str("world")