#KT-19924: Fix usability issue with extract declaration from file intention
Fix ExtractDeclaration intention name in tests Fix ExtractDeclaration intention folder and description to avoid "not found Dir URL" exception
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// ERROR: Primary constructor is required for inline class
|
||||
// ACTION: Create test
|
||||
// ACTION: Implement members
|
||||
// ACTION: Move 'A' to separate file
|
||||
// ACTION: Extract 'A' from current file
|
||||
// ACTION: Rename file to A.kt
|
||||
interface I {
|
||||
fun foo(): String
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// ACTION: Create test
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Move 'X' to separate file
|
||||
// ACTION: Extract 'X' from current file
|
||||
|
||||
interface D {
|
||||
fun foo()
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
// "Make 'Some' abstract" "false"
|
||||
// ACTION: Create test
|
||||
// ACTION: Implement members
|
||||
// ACTION: Move 'Some' to separate file
|
||||
// ACTION: Extract 'Some' from current file
|
||||
// ACTION: Rename file to Some.kt
|
||||
// ERROR: Object 'Some' is not abstract and does not implement abstract member public abstract fun foo(): Unit defined in T
|
||||
interface T {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
object <caret>Some : T
|
||||
object <caret>Some : T
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Implement members" "false"
|
||||
// ACTION: Create test
|
||||
// ACTION: Make internal
|
||||
// ACTION: Move 'A' to separate file
|
||||
// ACTION: Extract 'A' from current file
|
||||
|
||||
interface I {
|
||||
fun foo()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// ACTION: Make 'A' abstract
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Move 'A' to separate file
|
||||
// ACTION: Extract 'A' from current file
|
||||
// ERROR: Class 'A' is not abstract and does not implement abstract member public abstract fun foo(): Int defined in I
|
||||
interface I {
|
||||
fun foo(): Int
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// ACTION: Implement members
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Move 'A' to separate file
|
||||
// ACTION: Extract 'A' from current file
|
||||
// ERROR: Object 'A' is not abstract and does not implement abstract member public abstract val foo: Int defined in I
|
||||
interface I {
|
||||
val foo: Int
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Safe delete 'Imported'" "false"
|
||||
// ACTION: Create test
|
||||
// ACTION: Move 'ImportedClass' to separate file
|
||||
// ACTION: Extract 'ImportedClass' from current file
|
||||
// ACTION: Rename file to ImportedClass.kt
|
||||
import ImportedClass as ClassAlias
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Safe delete 'Imported'" "false"
|
||||
// ACTION: Create test
|
||||
// ACTION: Move 'Imported' to separate file
|
||||
// ACTION: Extract 'Imported' from current file
|
||||
// ACTION: Rename file to Imported.kt
|
||||
import Imported as Alias
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// ACTION: Create test
|
||||
// ACTION: Make primary constructor internal
|
||||
// ACTION: Make primary constructor private
|
||||
// ACTION: Move 'C' to separate file
|
||||
// ACTION: Extract 'C' from current file
|
||||
// ACTION: Rename file to C.kt
|
||||
|
||||
interface A {
|
||||
|
||||
Reference in New Issue
Block a user