Some solution for the case when a property which is a function is called.
This commit is contained in:
committed by
Pavel V. Talanov
parent
94f80b23fb
commit
ad49ac158d
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user