Fix for KT-6312: Compiler crashes accessing inherited property of class object
#KT-6312 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
open class Bar<T>(val prop: String)
|
||||
class Foo {
|
||||
class object : Bar<Foo>("OK") {
|
||||
val p = Foo.prop
|
||||
val p2 = prop
|
||||
val p3 = this.prop
|
||||
}
|
||||
|
||||
val p4 = Foo.prop
|
||||
val p5 = prop
|
||||
}
|
||||
|
||||
fun box(): String = Foo.prop
|
||||
Reference in New Issue
Block a user