Transfer type to parent property in "Remove redundant getter" inspection

So #KT-21612 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-12-06 05:20:18 +03:00
committed by Mikhail Glukhikh
parent 834c3fe62b
commit b23d62c760
8 changed files with 47 additions and 0 deletions
@@ -0,0 +1,4 @@
interface Test {
val foo
<caret>get(): Int
}
@@ -0,0 +1,3 @@
interface Test {
val foo: Int
}
@@ -0,0 +1,4 @@
interface Test {
val foo: Int
<caret>get(): Int
}
@@ -0,0 +1,3 @@
interface Test {
val foo: Int
}
@@ -0,0 +1,4 @@
class Test {
val foo = 1
<caret>get(): Int = field
}
@@ -0,0 +1,3 @@
class Test {
val foo = 1
}