Better texts for quickfixes to change return type
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'A.foo' function return type to 'Long'" "true"
|
||||
// "Change return type of overridden function 'A.foo' to 'Long'" "true"
|
||||
interface A {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
idea/testData/quickfix/override/typeMismatchOnOverride/changeReturnTypeOfOverriddenFunction.kt.after
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'A.foo' function return type to 'Long'" "true"
|
||||
// "Change return type of overridden function 'A.foo' to 'Long'" "true"
|
||||
interface A {
|
||||
fun foo(): Long
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'foo' function return type to 'Boolean'" "true"
|
||||
// "Change return type to 'Boolean'" "true"
|
||||
|
||||
interface A {
|
||||
fun foo(): Boolean
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'foo' function return type to 'Boolean'" "true"
|
||||
// "Change return type to 'Boolean'" "true"
|
||||
|
||||
interface A {
|
||||
fun foo(): Boolean
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.foo' function return type to 'T'" "true"
|
||||
// "Change return type to 'T'" "true"
|
||||
open class S {}
|
||||
open class T : S() {}
|
||||
|
||||
|
||||
idea/testData/quickfix/override/typeMismatchOnOverride/returnTypeMismatchOnMultipleOverride.kt.after
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.foo' function return type to 'T'" "true"
|
||||
// "Change return type to 'T'" "true"
|
||||
open class S {}
|
||||
open class T : S() {}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.foo' function return type to 'Int'" "true"
|
||||
// "Change return type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract fun foo() : Int;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.foo' function return type to 'Int'" "true"
|
||||
// "Change return type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract fun foo() : Int;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.foo' function return type to 'Int'" "true"
|
||||
// "Change return type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract fun foo() : Int;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 'B.foo' function return type to 'Int'" "true"
|
||||
// "Change return type to 'Int'" "true"
|
||||
abstract class A {
|
||||
abstract fun foo() : Int;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove explicitly specified return type in 'A.remove' function" "true"
|
||||
// "Remove explicitly specified return type" "true"
|
||||
abstract class A : java.util.Iterator<Int> {
|
||||
public abstract override fun remove() : Int<caret>;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove explicitly specified return type in 'A.remove' function" "true"
|
||||
// "Remove explicitly specified return type" "true"
|
||||
abstract class A : java.util.Iterator<Int> {
|
||||
public abstract override fun remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user