Introduce Variable: Forbid in the class body and at the top level

#KT-8735 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-01 18:43:36 +03:00
parent 0f5dff483a
commit 3038e2382b
8 changed files with 26 additions and 23 deletions
@@ -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
}