Fix exception during resolution of incorrect fun interface
#KT-37541 Fixed
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
fun interface IsolatedFunFace {
|
||||
}
|
||||
|
||||
typealias FunAlias = IsolatedFunFace
|
||||
|
||||
fun referIsolatedFunFace(iff: IsolatedFunFace) {}
|
||||
|
||||
fun callIsolatedFunFace() {
|
||||
referIsolatedFunFace(<!UNRESOLVED_REFERENCE!>IsolatedFunFace<!> {})
|
||||
referIsolatedFunFace(<!UNRESOLVED_REFERENCE!>FunAlias<!> {})
|
||||
<!INAPPLICABLE_CANDIDATE!>referIsolatedFunFace<!>({})
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<!FUN_INTERFACE_WRONG_COUNT_OF_ABSTRACT_MEMBERS!>fun<!> interface IsolatedFunFace {
|
||||
}
|
||||
|
||||
typealias FunAlias = IsolatedFunFace
|
||||
|
||||
fun referIsolatedFunFace(<!UNUSED_PARAMETER!>iff<!>: IsolatedFunFace) {}
|
||||
|
||||
fun callIsolatedFunFace() {
|
||||
referIsolatedFunFace(<!RESOLUTION_TO_CLASSIFIER!>IsolatedFunFace<!> {})
|
||||
referIsolatedFunFace(<!RESOLUTION_TO_CLASSIFIER!>FunAlias<!> {})
|
||||
referIsolatedFunFace(<!TYPE_MISMATCH!>{}<!>)
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
public fun callIsolatedFunFace(): kotlin.Unit
|
||||
public fun referIsolatedFunFace(/*0*/ iff: IsolatedFunFace): kotlin.Unit
|
||||
|
||||
public fun interface IsolatedFunFace {
|
||||
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
|
||||
}
|
||||
public typealias FunAlias = IsolatedFunFace
|
||||
Reference in New Issue
Block a user