scala-subscript / subscript

9 stars 2 forks source link

Can't call methods on local variables without "let" #8

Closed anatoliykmetyuk closed 8 years ago

anatoliykmetyuk commented 9 years ago

This:

val x = new Foo
x.bar()

won't work, because the actual variable won't be extracted from x, x's type on method call will be LocalVariable[Foo] instead of Foo.