Change Signature: Add test for KT-5784 "Generate import on function refactoring when parameter changes type"
#KT-5784 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package b
|
||||
|
||||
import a.Bar
|
||||
|
||||
fun foo(o: Bar) {}
|
||||
@@ -0,0 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.foo
|
||||
|
||||
class Bar
|
||||
|
||||
fun test() {
|
||||
foo(Bar())
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package b
|
||||
|
||||
fun foo(o: Any) {}
|
||||
@@ -0,0 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.foo
|
||||
|
||||
class Bar
|
||||
|
||||
fun test() {
|
||||
<caret>foo(Bar())
|
||||
}
|
||||
Reference in New Issue
Block a user