20 lines
350 B
Plaintext
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")
|