Better texts of change variable type quickfixes

This commit is contained in:
Valentin Kipyatkov
2016-09-20 22:42:19 +03:00
parent 80d82d2dee
commit e4f80e277f
46 changed files with 84 additions and 53 deletions
@@ -1,5 +1,5 @@
// "Change 'A.x' type to '(Int) -> Int'" "false"
// ACTION: Change 'C.x' type to '(String) -> Int'
// "Change type of overriden property 'A.x' to '(Int) -> Int'" "false"
// ACTION: Change type to '(String) -> Int'
// ERROR: Type of 'x' is not a subtype of the overridden property 'public abstract val x: (String) -> Int defined in A'
interface A {
val x: (String) -> Int
@@ -1,4 +1,4 @@
// "Change 'B.x' type to '(Int) -> Int'" "true"
// "Change type of overridden property 'B.x' to '(Int) -> Int'" "true"
interface A {
val x: (Int) -> Int
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to '(Int) -> Int'" "true"
// "Change type of overridden property 'B.x' to '(Int) -> Int'" "true"
interface A {
val x: (Int) -> Int
}
@@ -1,4 +1,4 @@
// "Change 'A.x' type to 'String'" "true"
// "Change type of overridden property 'A.x' to 'String'" "true"
interface A {
var x: Int
}
@@ -1,4 +1,4 @@
// "Change 'A.x' type to 'String'" "true"
// "Change type of overridden property 'A.x' to 'String'" "true"
interface A {
var x: String
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to '(String) -> Int'" "true"
// "Change type to '(String) -> Int'" "true"
interface A {
var x: (String) -> Int
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to '(String) -> Int'" "true"
// "Change type to '(String) -> Int'" "true"
interface A {
var x: (String) -> Int
}
@@ -1,4 +1,4 @@
// "Change 'prop' type to 'Int'" "true"
// "Change type to 'Int'" "true"
// ERROR: Null can not be a value of a non-null type Int
interface Test<T> {
val prop : T
@@ -1,4 +1,4 @@
// "Change 'prop' type to 'Int'" "true"
// "Change type to 'Int'" "true"
// ERROR: Null can not be a value of a non-null type Int
interface Test<T> {
val prop : T
@@ -1,4 +1,4 @@
// "Change 'A.x' type to 'Int'" "true"
// "Change type to 'Int'" "true"
interface X {
val x: Int
}
@@ -1,4 +1,4 @@
// "Change 'A.x' type to 'Int'" "true"
// "Change type to 'Int'" "true"
interface X {
val x: Int
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to 'Int'" "true"
// "Change type to 'Int'" "true"
abstract class A {
abstract var x : Int
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to 'Int'" "true"
// "Change type to 'Int'" "true"
abstract class A {
abstract var x : Int
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to 'Int'" "true"
// "Change type to 'Int'" "true"
abstract class A {
abstract var x : Int
}
@@ -1,4 +1,4 @@
// "Change 'B.x' type to 'Int'" "true"
// "Change type to 'Int'" "true"
abstract class A {
abstract var x : Int
}