ChangeVariableTypeFix
This commit is contained in:
committed by
Andrey Breslav
parent
cdd41f0fa1
commit
9000f6971c
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Change property type to 'Int'" "true"
|
||||
// "Change 'x' type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
abstract class B : A() {
|
||||
override abstract var x : Int
|
||||
override abstract var x: Int
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Change property type to 'Int'" "true"
|
||||
// "Change 'x' type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
abstract class B : A() {
|
||||
override abstract var x: Int
|
||||
override abstract var x<caret>: Int
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Change property type to 'Int'" "true"
|
||||
// "Change 'x' type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
abstract class B : A() {
|
||||
override abstract var x : Long<caret>
|
||||
override abstract var x: Long<caret>
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change property type to 'Int'" "true"
|
||||
// "Change 'x' type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Change 'y' type to 'Int'" "true"
|
||||
class A {
|
||||
fun component1() = 42
|
||||
fun component2() = 42
|
||||
fun component3() = 42
|
||||
}
|
||||
|
||||
fun foo(a: A) {
|
||||
val (x: Int, y: Int, z: Int) = a<caret>
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Change 'y' type to 'Int'" "true"
|
||||
class A {
|
||||
fun component1() = 42
|
||||
fun component2() = 42
|
||||
fun component3() = 42
|
||||
}
|
||||
|
||||
fun foo(a: A) {
|
||||
val (x: Int, y: String, z: Int) = a<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user