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

20 lines
350 B
Plaintext

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