Extract Interface: Fix type import when converting parameter to property
#KT-18736 Fixed
This commit is contained in:
@@ -0,0 +1 @@
|
||||
class Foo
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import foo.Z
|
||||
|
||||
class Foo
|
||||
interface ISomething {
|
||||
val z: Z
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class Z
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class Z
|
||||
@@ -0,0 +1,8 @@
|
||||
// NAME: ISomething
|
||||
// TARGET_FILE_NAME: addImportOnParameterPullUp.1.kt
|
||||
import foo.Z
|
||||
|
||||
class <caret>C(
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
val z: Z
|
||||
)
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// NAME: ISomething
|
||||
// TARGET_FILE_NAME: addImportOnParameterPullUp.1.kt
|
||||
import foo.Z
|
||||
|
||||
class C(
|
||||
// INFO: {checked: "true", toAbstract: "true"}
|
||||
override val z: Z
|
||||
) : ISomething
|
||||
Reference in New Issue
Block a user