lang: Test a top-level var explicitly

This makes sure the top-level scope is really seen.
This commit is contained in:
James Shubin
2023-12-27 16:23:05 -05:00
parent 439179e37f
commit c2bf4ef7d4

View File

@@ -0,0 +1,10 @@
-- main.mcl --
$pass = $purpleidea != ""
$result = if $pass {
"pass"
} else {
"fail"
}
test $result {}
-- OUTPUT --
Vertex: test[pass]