Implement Abstract Member: Navigate to the generated declaration
#KT-12290 Fixed (cherry picked from commit 6274c6b)
This commit is contained in:
+2
-2
@@ -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>
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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>
|
||||
}
|
||||
}
|
||||
Vendored
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
+2
-2
@@ -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>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user