FIR checker: fix positions of type mismatch on overrides

To handle implicit return types, those should be reported on
declarations with return type positioning strategy, instead of
return type itself.
This commit is contained in:
Jinseong Jeon
2021-01-28 14:00:47 -08:00
committed by Dmitriy Novozhilov
parent 571c4ce398
commit b48835f3ce
17 changed files with 120 additions and 149 deletions
@@ -70,7 +70,7 @@ open class Case13_1 {
}
class Case13: Case13_1() {
override val x = null
override val <!PROPERTY_TYPE_MISMATCH_ON_OVERRIDE!>x<!> = null
}
// TESTCASE NUMBER: 14
@@ -79,7 +79,7 @@ abstract class Case14_1 {
}
class Case14: Case14_1() {
override val x = null
override val <!PROPERTY_TYPE_MISMATCH_ON_OVERRIDE!>x<!> = null
}
// TESTCASE NUMBER: 15
@@ -88,5 +88,5 @@ interface Case15_1 {
}
class Case15(): Case15_1 {
override fun foo() = null
override fun <!RETURN_TYPE_MISMATCH_ON_OVERRIDE!>foo<!>() = null
}