Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d905f333c6
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (18 sloc) 0.338 kB
// Evaluate the expressions in order.
do
print("1") // expect: 1
print("2") // expect: 2
print("3") // expect: 3
end
// Return the value of the last expression.
print(do
1
2
end) // expect: 2
// Create a local scope.
val a = "outer"
do
val a = "inner"
print(a) // expect: inner
end
print(a) // expect: outer
Jump to Line
Something went wrong with that request. Please try again.