FIR: dump nested classes in loadJava tests
Because those test are single Java files, many of them use a top-level class as a container for multiple classes to be tested. Such tests do almost nothing if those nested classes aren't handled.
This commit is contained in:
+10
@@ -1,2 +1,12 @@
|
||||
public abstract interface AdapterDoesntOverrideDeclaration : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/AdapterDoesntOverrideDeclaration.Super| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>, kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>, kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+8
@@ -1,2 +1,10 @@
|
||||
public abstract interface InheritedAdapterAndDeclaration : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/InheritedAdapterAndDeclaration.Super| {
|
||||
}
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>, kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+8
@@ -1,2 +1,10 @@
|
||||
public abstract interface InheritedAmbiguousAdapters : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/InheritedAmbiguousAdapters.Super| {
|
||||
}
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<java/io/Closeable, java/io/Closeable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -1,2 +1,14 @@
|
||||
public abstract interface InheritedAndOverriddenAmbiguousAdapters : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/InheritedAndOverriddenAmbiguousAdapters.Super| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<java/io/Closeable, java/io/Closeable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<java/io/Closeable, java/io/Closeable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+12
@@ -1,2 +1,14 @@
|
||||
public abstract interface InheritedOverridden : R|kotlin/Any| {
|
||||
public open class Sub : R|test/InheritedOverridden.Super| {
|
||||
public open fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/InheritedOverridden.Sub|
|
||||
|
||||
}
|
||||
public open class Super : R|kotlin/Any| {
|
||||
public open fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/InheritedOverridden.Super|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+14
@@ -1,2 +1,16 @@
|
||||
public abstract interface InheritedOverriddenAdapter : R|kotlin/Any| {
|
||||
public open class Sub : R|test/InheritedOverriddenAdapter.Super| {
|
||||
public open fun foo(r: R|ft<kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>, kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>?>|): R|kotlin/Unit|
|
||||
|
||||
public open fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/InheritedOverriddenAdapter.Sub|
|
||||
|
||||
}
|
||||
public open class Super : R|kotlin/Any| {
|
||||
public open fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/InheritedOverriddenAdapter.Super|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+10
@@ -1,2 +1,12 @@
|
||||
public abstract interface InheritedSameAdapters : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/InheritedSameAdapters.Super1|, R|test/InheritedSameAdapters.Super2| {
|
||||
}
|
||||
public abstract interface Super1 : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public abstract interface Super2 : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -1,2 +1,14 @@
|
||||
public abstract interface InheritedSameAdaptersWithSubstitution : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/InheritedSameAdaptersWithSubstitution.Super1|, R|test/InheritedSameAdaptersWithSubstitution.Super2Substituted| {
|
||||
}
|
||||
public abstract interface Super1 : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/util/Comparator<ft<kotlin/String, kotlin/String?>>, java/util/Comparator<ft<kotlin/String, kotlin/String?>>?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public abstract interface Super2<T : R|ft<kotlin/Any, kotlin/Any?>|> : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/util/Comparator<ft<T, T?>>, java/util/Comparator<ft<T, T?>>?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public abstract interface Super2Substituted : R|test/InheritedSameAdaptersWithSubstitution.Super2<ft<kotlin/String, kotlin/String?>>| {
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -1,2 +1,8 @@
|
||||
public abstract interface InheritedSimple : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/InheritedSimple.Super| {
|
||||
}
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
compiler/testData/loadJava/compiledJava/sam/adapters/inheritance/OverriddenAmbiguousAdapters.fir.txt
Vendored
+14
@@ -1,2 +1,16 @@
|
||||
public abstract interface OverriddenAmbiguousAdapters : R|kotlin/Any| {
|
||||
public abstract interface Sub : R|test/OverriddenAmbiguousAdapters.Super| {
|
||||
public abstract fun foo(r: R|ft<kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>, kotlin/Function0<ft<kotlin/Unit, kotlin/Unit?>>?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<java/io/Closeable, java/io/Closeable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun foo(r: R|ft<java/lang/Runnable, java/lang/Runnable?>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(r: R|ft<java/io/Closeable, java/io/Closeable?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user