Quick Fixes: Use simple class name in "Change function return type" quickfix
#KT-12919 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Change 'foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
fun test() {
|
||||
val o = object {
|
||||
fun foo(): String {
|
||||
return <caret>1
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Change 'foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
fun test() {
|
||||
val o = object {
|
||||
fun foo(): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Change 'Companion.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
fun foo(): String {
|
||||
return <caret>1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Change 'Companion.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
fun foo(): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Change 'A.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
fun test() {
|
||||
class A {
|
||||
fun foo(): String {
|
||||
return <caret>1
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Change 'A.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
fun test() {
|
||||
class A {
|
||||
fun foo(): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Change 'B.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
class A {
|
||||
class B {
|
||||
fun foo(): String {
|
||||
return <caret>1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Change 'B.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
class A {
|
||||
class B {
|
||||
fun foo(): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Change 'A.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
class A {
|
||||
fun foo(): String {
|
||||
return <caret>1
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Change 'A.foo' function return type to 'Int'" "true"
|
||||
package foo.bar
|
||||
|
||||
class A {
|
||||
fun foo(): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user