Unify code for checking return type on override for fun/property

This fixes issues with the refinement of property' return type because
for functions' return type we already perform refinement properly
This commit is contained in:
Dmitry Savvinov
2020-09-27 21:23:46 +03:00
parent 736ecf3e9f
commit ac63d8b3bf
2 changed files with 20 additions and 39 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ interface Derived : Base {
override fun Expect.expectInReceiver()
override val expectVal: <!PROPERTY_TYPE_MISMATCH_ON_OVERRIDE!>Expect<!>
override val expectVal: Expect
override var expectVar: <!VAR_TYPE_MISMATCH_ON_OVERRIDE!>Expect<!>
override var expectVar: Expect
}