Fix exception during resolution of incorrect fun interface

#KT-37541 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-04-27 05:18:31 +03:00
parent 780bc1f607
commit 1a26d2e157
7 changed files with 61 additions and 6 deletions
@@ -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<!>({})
}
@@ -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!>{}<!>)
}
@@ -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