Report UNINITIALIZED_VARIABLE also for qualified object property #KT-12809 Fixed
(cherry picked from commit 7b2857f)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
35446037bb
commit
0c98231f53
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// See KT-12809
|
||||
open class A(val a: Any) {
|
||||
override fun toString() = a.toString()
|
||||
}
|
||||
|
||||
object B : A(B.<!UNINITIALIZED_VARIABLE!>foo<!>) { // call B.foo should be not-allowed
|
||||
val foo = 4
|
||||
}
|
||||
Reference in New Issue
Block a user