KT-7651 IllegalArgumentException on attempt to rename class when it has anonymous subclasses
#KT-7651 fixed #EA-69049 fixed
This commit is contained in:
@@ -5,5 +5,7 @@ class JavaBar extends Bar {
|
||||
class Usage {
|
||||
public static void main(String[] args) {
|
||||
Bar bar = null;
|
||||
new Bar() {
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,9 @@ fun main(args: Array<String>) {
|
||||
val someVerySpecialBar: Bar = Bar()
|
||||
val barAnother: Bar = Bar()
|
||||
|
||||
val anonymous = object : Bar() {
|
||||
}
|
||||
|
||||
val (bar1: Bar, bars: List<Bar>) = Pair(Bar(), listOf<Bar>())
|
||||
|
||||
try {
|
||||
|
||||
@@ -5,5 +5,7 @@ class JavaFoo extends Foo {
|
||||
class Usage {
|
||||
public static void main(String[] args) {
|
||||
Foo foo = null;
|
||||
new Foo() {
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,9 @@ fun main(args: Array<String>) {
|
||||
val someVerySpecialFoo: Foo = Foo()
|
||||
val fooAnother: Foo = Foo()
|
||||
|
||||
val anonymous = object : Foo() {
|
||||
}
|
||||
|
||||
val (foo1: Foo, foos: List<Foo>) = Pair(Foo(), listOf<Foo>())
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user