| 1 |
-- main.mcl -- |
| 2 |
# variable re-declaration and type change error |
| 3 |
# this should fail b/c of variable re-declaration |
| 4 |
$x = "wow" |
| 5 |
$x = 99 # woops, but also a change of type :P |
| 6 |
-- OUTPUT -- |
| 7 |
# err: errSetScope: could not generate ordering: duplicate assignment to `var:x`, have: bind(x) |