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_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!>{}<!>)
}