Implement Abstract Member: Navigate to the generated declaration

#KT-12290 Fixed
(cherry picked from commit 6274c6b)
This commit is contained in:
Alexey Sedunov
2016-06-20 16:39:27 +03:00
parent 0d80bf030f
commit 8e061c9ec1
14 changed files with 33 additions and 28 deletions
@@ -1,13 +1,13 @@
// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun <caret>foo(x: X): X
fun foo(x: X): X
}
enum class E : T<Int> {
A, B, C;
override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}
@@ -1,13 +1,13 @@
// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun <caret>foo(x: X): X
fun foo(x: X): X
}
enum class E : T<Int> {
A, B, C;
override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}
@@ -1,14 +1,14 @@
// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun <caret>foo(x: X): X
fun foo(x: X): X
}
enum class E : T<Int> {
A, B, C;
override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
val bar = 1
@@ -11,9 +11,9 @@ enum class E {
}
}, C {
override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
};
abstract fun <caret>foo(x: Int): Int
abstract fun foo(x: Int): Int
}
@@ -11,9 +11,9 @@ enum class E(n: Int) {
}
}, C(3) {
override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
};
abstract fun <caret>foo(x: Int): Int
abstract fun foo(x: Int): Int
}
@@ -1,7 +1,7 @@
// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun <caret>foo(x: X): X
fun foo(x: X): X
}
class U : T<String> {
@@ -13,7 +13,7 @@ class U : T<String> {
class V : T<Int> {
override fun foo(x: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}