0d7c8635b3
- Detect usages of unitialized `this` as extension receiver argument - Make it work within object literal created before super call #KT-9120 Fixed #KT-8289 Fixed
13 lines
405 B
Kotlin
Vendored
13 lines
405 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun A.foobar() = 3
|
|
|
|
class A {
|
|
fun foo() = 1
|
|
constructor(x: Any?)
|
|
constructor() : this(object {
|
|
fun bar() = <!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>foo<!>() + <!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>this@A<!>.foo() +
|
|
<!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>foobar<!>() + <!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>super@A<!>.hashCode()
|
|
})
|
|
}
|