Support generating light classes on type parameters having no name

Example:

class C<in /*no name here*/>
This commit is contained in:
Andrey Breslav
2014-06-10 12:14:36 +04:00
parent 111c0e55b8
commit 5a27317baf
@@ -680,6 +680,11 @@ public class JetTypeMapper {
}
private void writeFormalTypeParameter(@NotNull TypeParameterDescriptor typeParameterDescriptor, @NotNull BothSignatureWriter sw) {
if (classBuilderMode == ClassBuilderMode.LIGHT_CLASSES && typeParameterDescriptor.getName().isSpecial()) {
// If a type parameter has no name, the code below fails, but it should recover in case of light classes
return;
}
sw.writeFormalTypeParameter(typeParameterDescriptor.getName().asString());
classBound: