Add the quickfix to add property to supertype #KT-17004 Fixed

This commit is contained in:
Monchi
2018-09-23 22:48:20 +03:00
committed by Mikhail Glukhikh
parent aa8031691e
commit 07ca958ff0
10 changed files with 262 additions and 1 deletions
@@ -0,0 +1,6 @@
// "Add 'abstract val hoge: Int' to 'Foo'" "true"
abstract class Foo
class Bar: Foo() {
override<caret> val hoge = 3
}
@@ -0,0 +1,8 @@
// "Add 'abstract val hoge: Int' to 'Foo'" "true"
abstract class Foo {
abstract val hoge: Int
}
class Bar: Foo() {
override val hoge = 3
}
@@ -0,0 +1,6 @@
// "Add 'val hoge: Int' to 'Foo'" "true"
interface Foo
class Bar: Foo {
override<caret> val hoge = 3
}
@@ -0,0 +1,8 @@
// "Add 'val hoge: Int' to 'Foo'" "true"
interface Foo {
val hoge: Int
}
class Bar: Foo {
override val hoge = 3
}
@@ -0,0 +1,6 @@
// "Add 'open val hoge: Int' to 'Foo'" "true"
open class Foo
class Bar: Foo() {
override<caret> val hoge = 3
}
@@ -0,0 +1,8 @@
// "Add 'open val hoge: Int' to 'Foo'" "true"
open class Foo {
open val hoge: Int = 3
}
class Bar: Foo() {
override val hoge = 3
}