[FE Test] Rename nested directory in testdata into nestedClasses
This is needed to avoid clash between generated test class `Nested` and `@Nested` annotation from JUnit 5
This commit is contained in:
committed by
Space Team
parent
0ca86c86be
commit
de33a21fd1
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
class A<TA> {
|
||||
inner class B<TB> {
|
||||
inner class C<TC> {
|
||||
inner class D<TD> {
|
||||
fun <P1, P2, P3, P4> foo(p1: P1, p2: P2, p3: P3, p4: P4): Nothing = null!!
|
||||
|
||||
fun bar(ta: TA, tb: TB, tc: TC, td: TD): A<TA>.B<TB>.C<TC>.D<TD> = foo<TA, TB, TC, TD>(ta, tb, tc, td)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
public final class A</*0*/ TA> {
|
||||
/*primary*/ public constructor A</*0*/ TA>()
|
||||
|
||||
public final inner class B</*0*/ TB> /*captured type parameters: /*1*/ TA*/ {
|
||||
/*primary*/ public constructor B</*0*/ TB>()
|
||||
|
||||
public final inner class C</*0*/ TC> /*captured type parameters: /*1*/ TB, /*2*/ TA*/ {
|
||||
/*primary*/ public constructor C</*0*/ TC>()
|
||||
|
||||
public final inner class D</*0*/ TD> /*captured type parameters: /*1*/ TC, /*2*/ TB, /*3*/ TA*/ {
|
||||
/*primary*/ public constructor D</*0*/ TD>()
|
||||
public final fun bar(/*0*/ ta: TA, /*1*/ tb: TB, /*2*/ tc: TC, /*3*/ td: TD): test.A<TA>.B<TB>.C<TC>.D<TD>
|
||||
public final fun </*0*/ P1, /*1*/ P2, /*2*/ P3, /*3*/ P4> foo(/*0*/ p1: P1, /*1*/ p2: P2, /*2*/ p3: P3, /*3*/ p4: P4): kotlin.Nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
class InnerClassReferencesOuterTP<P> {
|
||||
inner class Inner<Q : P>
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
public final class InnerClassReferencesOuterTP</*0*/ P> {
|
||||
/*primary*/ public constructor InnerClassReferencesOuterTP</*0*/ P>()
|
||||
|
||||
public final inner class Inner</*0*/ Q : P> /*captured type parameters: /*1*/ P*/ {
|
||||
/*primary*/ public constructor Inner</*0*/ Q : P>()
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
//ALLOW_AST_ACCESS
|
||||
package test
|
||||
|
||||
class MembersReferenceOuterTP<P> {
|
||||
inner class Inner {
|
||||
fun <Q : P> f() {}
|
||||
fun g(p: P): P = null!!
|
||||
|
||||
val v: P = null!!
|
||||
val <Q : P> Q.w: Q get() = null!!
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
public final class MembersReferenceOuterTP</*0*/ P> {
|
||||
/*primary*/ public constructor MembersReferenceOuterTP</*0*/ P>()
|
||||
|
||||
public final inner class Inner /*captured type parameters: /*0*/ P*/ {
|
||||
/*primary*/ public constructor Inner()
|
||||
public final val v: P
|
||||
public final fun `<get-v>`(): P
|
||||
public final val </*0*/ Q : P> Q.w: Q
|
||||
public final fun Q.`<get-w>`(): Q
|
||||
public final fun </*0*/ Q : P> f(): kotlin.Unit
|
||||
public final fun g(/*0*/ p: P): P
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user