Navigate to super for objects

This commit is contained in:
Nikolay Krasko
2013-06-07 15:21:22 +04:00
parent 4e67566e58
commit d50300dedc
9 changed files with 170 additions and 5 deletions
@@ -0,0 +1,6 @@
// FILE: before.kt
trait Some
class <caret>SomeObject: Some
// FILE: after.kt
trait <caret>Some
class SomeObject: Some
@@ -0,0 +1,18 @@
// FILE: before.kt
trait Some {
fun test()
}
class SomeObject: Some {
override fun <caret>test() {
}
}
// FILE: after.kt
trait Some {
fun <caret>test()
}
class SomeObject: Some {
override fun test() {
}
}
@@ -0,0 +1,6 @@
// FILE: b.kt
trait Some
object <caret>SomeObject: Some
// FILE: a.kt
trait <caret>Some
object SomeObject: Some
@@ -0,0 +1,14 @@
// FILE: b.kt
trait Some {
val test: Int
}
class SomeObject: Some {
override val <caret>test: Int = 1
}
// FILE: a.kt
trait Some {
val <caret>test: Int
}
class SomeObject: Some {
override val test: Int = 1
}
@@ -0,0 +1,6 @@
// FILE: a.kt
open class First
trait <caret>Second: First
// FILE: b.kt
open class <caret>First
trait Second: First