Property accessor isn't recursive when called on another object

So #KT-18120 Fixed
This commit is contained in:
Dmitry Neverov
2017-06-04 12:25:34 +03:00
committed by Mikhail Glukhikh
parent ecfc2236a6
commit e2aa3518df
3 changed files with 29 additions and 0 deletions
@@ -38,4 +38,14 @@ class A {
A.g = 99
}
}
}
object Obj {
val s: String
get() = Obj.s
}
class Node(val next: Node?) {
val last: Node
get() = if (next != null) next.last else this
}