KT-6566 Generate Override/Implement method does not work for locally declared classes

#KT-6566 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-01-12 15:04:44 +03:00
parent eed0def1cb
commit c915eb4eac
29 changed files with 168 additions and 77 deletions
@@ -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>
}
}
}