Introduce inapplicable wrong receiver status to improve diagnostics
#KT-10754 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class A
|
||||
fun A.fn(b: Int): Nothing = TODO()
|
||||
|
||||
fun A.run() {
|
||||
"".apply { fn(<!TYPE_MISMATCH!>""<!>) }
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
public fun A.fn(/*0*/ b: kotlin.Int): kotlin.Nothing
|
||||
public fun A.run(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user