Create From Usage: Place generated declarations next to original element container if they have common parent
#KT-6687 Fixed
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
fun test() = this.Foo(2, "2")
|
||||
|
||||
inner class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
|
||||
fun test() = this.Foo(2, "2")
|
||||
}
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
inner class B<U>(val m: U) {
|
||||
fun test() = this.Foo(2, "2")
|
||||
|
||||
inner class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
|
||||
fun test() = this.Foo(2, "2")
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
inner class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
|
||||
inner class B<U>(val m: U) {
|
||||
fun test() = this@A.Foo(2, "2")
|
||||
}
|
||||
|
||||
inner class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user