ChangeVariableTypeFix

This commit is contained in:
Wojciech Lopata
2013-03-19 13:07:27 +01:00
committed by Andrey Breslav
parent cdd41f0fa1
commit 9000f6971c
13 changed files with 149 additions and 107 deletions
@@ -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
}
@@ -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
}
@@ -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,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>
}