Extract Function: Forbid inappropriate declarations inside extractable fragment

#KT-20467 Fixed
 #KT-20469 Fixed
This commit is contained in:
Alexey Sedunov
2018-06-07 14:57:49 +03:00
parent f7cda61b08
commit 16dbc6fb4d
13 changed files with 43 additions and 5 deletions
@@ -0,0 +1,4 @@
// SIBLING:
class Foo {
<selection>constructor(bar: Int)</selection>
}
@@ -0,0 +1 @@
Refactoring is not applicable to this code fragment
@@ -0,0 +1,2 @@
// SIBLING:
class Foo(<selection>bar: String = "baz"</selection>)
@@ -0,0 +1 @@
Refactoring is not applicable to this code fragment