Fix wrong assumptions in quickfix

Diagnostic is always reported on overriden property

 #EA-64407 Fixed
This commit is contained in:
Denis Zharkov
2015-06-02 10:15:24 +03:00
parent 349d5f02ea
commit 11290ae9e7
4 changed files with 30 additions and 2 deletions
@@ -0,0 +1,11 @@
// "Change 'foo' function return type to 'Boolean'" "true"
interface A {
fun foo(): Boolean
}
fun foo() {
val x = object : A {
override fun foo(): Boolean?<caret> = true
}
}
@@ -0,0 +1,11 @@
// "Change 'foo' function return type to 'Boolean'" "true"
interface A {
fun foo(): Boolean
}
fun foo() {
val x = object : A {
override fun foo(): Boolean = true
}
}