Transfer type to parent property in "Remove redundant getter" inspection
So #KT-21612 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
834c3fe62b
commit
b23d62c760
@@ -0,0 +1,4 @@
|
||||
interface Test {
|
||||
val foo
|
||||
<caret>get(): Int
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
interface Test {
|
||||
val foo: Int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
interface Test {
|
||||
val foo: Int
|
||||
<caret>get(): Int
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
interface Test {
|
||||
val foo: Int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
class Test {
|
||||
val foo = 1
|
||||
<caret>get(): Int = field
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
val foo = 1
|
||||
}
|
||||
Reference in New Issue
Block a user