mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
8 lines
193 B
Kotlin
Vendored
8 lines
193 B
Kotlin
Vendored
// 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
|
|
} |