Extract Function: Forbid inappropriate declarations inside extractable fragment
#KT-20467 Fixed #KT-20469 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// SIBLING:
|
||||
class Foo {
|
||||
<selection>constructor(bar: Int)</selection>
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Refactoring is not applicable to this code fragment
|
||||
@@ -0,0 +1,2 @@
|
||||
// SIBLING:
|
||||
class Foo(<selection>bar: String = "baz"</selection>)
|
||||
+1
@@ -0,0 +1 @@
|
||||
Refactoring is not applicable to this code fragment
|
||||
Reference in New Issue
Block a user