8 lines
170 B
Mojo
8 lines
170 B
Mojo
# probe: can a program have a variable at file scope? (no: "global variables are not supported")
|
|
# expect: compile-error
|
|
var counter = 0
|
|
|
|
|
|
def main():
|
|
print(counter)
|