12 lines
309 B
Kotlin
Vendored
12 lines
309 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun A.foobar() = 3
|
|
|
|
class A {
|
|
fun foo() = 1
|
|
constructor( x: Any = object {
|
|
fun bar() = <!UNRESOLVED_REFERENCE!>foo<!>() + <!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>this@A<!>.foo() +
|
|
<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>foobar<!>()
|
|
})
|
|
}
|