Better texts of change variable type quickfixes
This commit is contained in:
+2
-2
@@ -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
-1
@@ -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
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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
-1
@@ -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
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
idea/testData/quickfix/override/typeMismatchOnOverride/changeOverridingPropertyTypeToFunctionType.kt
Vendored
+1
-1
@@ -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
-1
@@ -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
-1
@@ -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
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'A.x' type to 'Int'" "true"
|
||||
// "Change type to 'Int'" "true"
|
||||
interface X {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
idea/testData/quickfix/override/typeMismatchOnOverride/propertyReturnTypeMismatchOnOverride.kt.after
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'A.x' type to 'Int'" "true"
|
||||
// "Change type to 'Int'" "true"
|
||||
interface X {
|
||||
val x: Int
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.x' type to 'Int'" "true"
|
||||
// "Change type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.x' type to 'Int'" "true"
|
||||
// "Change type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.x' type to 'Int'" "true"
|
||||
// "Change type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.x' type to 'Int'" "true"
|
||||
// "Change type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract var x : Int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user