Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.168 kb
package jvm_summit
class Variable {
def doSomething(f: Int => Unit ) = f(42)
def refVar() {
var x = 0
doSomething(y => x += y)
assert(x == 42)
}
}
Jump to Line
Something went wrong with that request. Please try again.