More tests for generating methods from different caret positions
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class <caret>Other {
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
fun test() {
|
||||
val a = 1<caret>
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other <caret>{
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
trait Some {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class Other {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user