Introduce Variable: Forbid in the class body and at the top level
#KT-8735 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class X {
|
||||
val s = <selection>10</selection>.toString()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Cannot refactor in this place
|
||||
@@ -0,0 +1 @@
|
||||
val s = <selection>10</selection>.toString()
|
||||
@@ -0,0 +1 @@
|
||||
Cannot refactor in this place
|
||||
@@ -1,3 +0,0 @@
|
||||
open class A {
|
||||
val x = <selection>1</selection>
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
open class A {
|
||||
val i = 1
|
||||
val x = i
|
||||
}
|
||||
Reference in New Issue
Block a user