KT-6566 Generate Override/Implement method does not work for locally declared classes
#KT-6566 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
abstract class C<A> {
|
||||
abstract fun f(a: A)
|
||||
}
|
||||
|
||||
fun f() {
|
||||
class R
|
||||
|
||||
object : C<R> {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
abstract class C<A> {
|
||||
abstract fun f(a: A)
|
||||
}
|
||||
|
||||
fun f() {
|
||||
class R
|
||||
|
||||
object : C<R> {
|
||||
override fun f(a: R) {
|
||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
object {}
|
||||
|
||||
// RESULT: Cannot perform an action because following types are unavailable from debugger scope: errors.MyClass.baseFun.<no name provided>
|
||||
// RESULT: Cannot perform an action because following types are unavailable from debugger scope: <no name provided>
|
||||
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.A
|
||||
Cannot extract method since following types are not denotable in the target scope: A
|
||||
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.A
|
||||
Cannot extract method since following types are not denotable in the target scope: A
|
||||
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.A
|
||||
Cannot extract method since following types are not denotable in the target scope: A
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.<no name provided>
|
||||
Cannot extract method since following types are not denotable in the target scope: <no name provided>
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.<no name provided>
|
||||
Cannot extract method since following types are not denotable in the target scope: <no name provided>
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.T
|
||||
Cannot extract method since following types are not denotable in the target scope: T
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.X
|
||||
Cannot extract method since following types are not denotable in the target scope: X
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Cannot extract method since following types are not denotable in the target scope: foo.X
|
||||
Cannot extract method since following types are not denotable in the target scope: X
|
||||
Reference in New Issue
Block a user