Extraction Engine: Forbid extraction of non-singleton qualifiers
#KT-8297 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
companion object {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
<selection>A</selection>.foo()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Cannot perform refactoring without an expression
|
||||
@@ -0,0 +1,7 @@
|
||||
enum class E {
|
||||
A, B, C
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
val t = <selection>E</selection>.A
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Cannot perform refactoring without an expression
|
||||
@@ -0,0 +1,9 @@
|
||||
object A {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
<selection>A</selection>.foo()
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
object A {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
a().foo()
|
||||
}
|
||||
|
||||
private fun a() = A
|
||||
@@ -0,0 +1,9 @@
|
||||
package p
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
<selection>p</selection>.foo()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Cannot perform refactoring without an expression
|
||||
Reference in New Issue
Block a user