6356807997
#KT-36247 fixed A lot of testdata changed because significanly less (error) descriptors are created for unresolved types, so diagnostics became different.
31 lines
1.2 KiB
Kotlin
Vendored
31 lines
1.2 KiB
Kotlin
Vendored
package m1
|
|
|
|
public fun testUseAsReceiver(api: javaInterface.API) {
|
|
api.useM1A<String> {
|
|
this.length
|
|
}
|
|
api.useM1B<String> {
|
|
<error descr="[NO_THIS] 'this' is not defined in this context">this</error>.<error descr="[DEBUG] Reference is not resolved to anything, but is not marked unresolved">length</error>
|
|
}
|
|
api.useM2A<String> {
|
|
this.length
|
|
}
|
|
api.useM2B<String> {
|
|
<error descr="[NO_THIS] 'this' is not defined in this context">this</error>.<error descr="[DEBUG] Reference is not resolved to anything, but is not marked unresolved">length</error>
|
|
}
|
|
}
|
|
|
|
public fun testUseAsParameter(api: javaInterface.API) {
|
|
api.useM1A<String> {
|
|
<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: it">it</error>.<error descr="[DEBUG] Reference is not resolved to anything, but is not marked unresolved">length</error>
|
|
}
|
|
api.useM1B<String> {
|
|
it.length
|
|
}
|
|
api.useM2A<String> {
|
|
<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: it">it</error>.<error descr="[DEBUG] Reference is not resolved to anything, but is not marked unresolved">length</error>
|
|
}
|
|
api.useM2B<String> {
|
|
it.length
|
|
}
|
|
} |