Fixed incorrect handling of this and super expressions in copy/paste processing and optimize imports
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package b
|
||||
|
||||
open class `super`
|
||||
@@ -0,0 +1,19 @@
|
||||
package a
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
class A : b.`super`() {
|
||||
fun f() {
|
||||
this.f()
|
||||
}
|
||||
|
||||
override fun getUsableSpace(): Long {
|
||||
return super.getUsableSpace()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun g() {
|
||||
this.g()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package a
|
||||
|
||||
class A : b.`super`() {
|
||||
fun f() {
|
||||
this.f()
|
||||
}
|
||||
|
||||
override fun getUsableSpace(): Long {
|
||||
return super.getUsableSpace()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun g() {
|
||||
this.g()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user