fixing broken test for naming of class objects
This commit is contained in:
@@ -726,6 +726,13 @@ public class JetTypeMapper {
|
|||||||
else if(container instanceof JetClass) {
|
else if(container instanceof JetClass) {
|
||||||
ClassDescriptor aClass = bindingContext.get(BindingContext.CLASS, container);
|
ClassDescriptor aClass = bindingContext.get(BindingContext.CLASS, container);
|
||||||
baseName = mapType(aClass.getDefaultType(), OwnerKind.IMPLEMENTATION).getInternalName();
|
baseName = mapType(aClass.getDefaultType(), OwnerKind.IMPLEMENTATION).getInternalName();
|
||||||
|
|
||||||
|
ClassDescriptor myClass = bindingContext.get(BindingContext.CLASS, expression);
|
||||||
|
if(CodegenUtil.isClassObject(myClass)) {
|
||||||
|
return mapType(aClass.getDefaultType(), OwnerKind.IMPLEMENTATION).getInternalName() + "$ClassObject$";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
baseName = classNameForAnonymousClass((JetElement) container);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
baseName = classNameForAnonymousClass((JetElement) container);
|
baseName = classNameForAnonymousClass((JetElement) container);
|
||||||
|
|||||||
Reference in New Issue
Block a user