Andreas Sinz
09/12/2018, 9:16 PMfun main(args: Array<String>) {
val foo = object {
var foo: Int? = null
}
foo.foo = 5
println(foo.foo) //Yields Smart cast impossible, because foo.foo is a mutable property ...
}
McEna
09/12/2018, 9:24 PMAndreas Sinz
09/12/2018, 9:27 PMprintln(Any?)
is available, furthermore if i place println
before foo.foo = 5
it worksMcEna
09/12/2018, 10:46 PMSam
09/12/2018, 10:49 PMMcEna
09/12/2018, 10:50 PMDico
09/13/2018, 5:28 AMMcEna
09/13/2018, 6:27 AM