FIR checker: report COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH

This commit is contained in:
Jinseong Jeon
2021-04-06 16:45:45 -07:00
committed by Mikhail Glukhikh
parent e511eec90e
commit 87c50235ed
20 changed files with 194 additions and 74 deletions
@@ -1,15 +0,0 @@
// !WITH_NEW_INFERENCE
class A {
operator fun component1() = 1
operator fun component2() = 1.0
}
class C {
operator fun iterator(): Iterator<A> = null!!
}
fun test() {
for ((x: Double, y: Int) in C()) {
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !WITH_NEW_INFERENCE
class A {
operator fun component1() = 1