Fix several bugs in serialization of inner generic classes

- Interner was working incorrectly with parents
- nested classes were serialized in codegen out of any context

 #KT-5660 Fixed
This commit is contained in:
Alexander Udalov
2014-11-24 16:07:40 +03:00
parent 36c65e4264
commit 1f68c94ce6
14 changed files with 205 additions and 25 deletions
@@ -0,0 +1,19 @@
package test
internal final class A</*0*/ TA> {
/*primary*/ public constructor A</*0*/ TA>()
internal final inner class B</*0*/ TB> {
/*primary*/ public constructor B</*0*/ TB>()
internal final inner class C</*0*/ TC> {
/*primary*/ public constructor C</*0*/ TC>()
internal final inner class D</*0*/ TD> {
/*primary*/ public constructor D</*0*/ TD>()
internal final fun bar(/*0*/ ta: TA, /*1*/ tb: TB, /*2*/ tc: TC, /*3*/ td: TD): test.A.B.C.D<TD>
internal 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
}
}
}
}