Some solution for the case when a property which is a function is called.

This commit is contained in:
pTalanov
2012-03-14 16:51:08 +04:00
committed by Pavel V. Talanov
parent 94f80b23fb
commit ad49ac158d
7 changed files with 79 additions and 14 deletions
@@ -0,0 +1,17 @@
package foo
class A() {
fun lold() = true
val p = {{lold()}()}
}
fun box() : Boolean {
return A().p()
}
fun main(arg : Array<String>) {
println(box())
}
@@ -0,0 +1,10 @@
package foo
class A() {
val p = {true}
}
fun box() : Boolean {
return A().p()
}