Add quick fix for PROPERTY_TYPE_MISMATCH_ON_OVERRIDE on constructor parameter

#KT-29934 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-20 17:29:58 +09:00
committed by Vladimir Dolzhenko
parent e2a7170b2f
commit 1b0fac4a67
6 changed files with 67 additions and 34 deletions
@@ -0,0 +1,6 @@
// "Change type of base property 'A.x' to 'Any'" "true"
interface A {
val x: CharSequence
}
class B(override val x: Any<caret>) : A
@@ -0,0 +1,6 @@
// "Change type of base property 'A.x' to 'Any'" "true"
interface A {
val x: Any
}
class B(override val x: Any) : A
@@ -0,0 +1,6 @@
// "Change type to 'CharSequence'" "true"
interface A {
val x: CharSequence
}
class B(override val x: Any<caret>) : A
@@ -0,0 +1,6 @@
// "Change type to 'CharSequence'" "true"
interface A {
val x: CharSequence
}
class B(override val x: CharSequence) : A