Report SUPERTYPE_NOT_INITIALIZED even if no constructors in superclass
Before this commit, expect super-class without constructors did not provoke SUPERTYPE_NOT_INITIALIZED. However, it should, but only if sub-type is normal class (not an expect one). So #KT-24597 Fixed
This commit is contained in:
@@ -372,7 +372,6 @@ public class BodyResolver {
|
||||
if (descriptor.getKind() != ClassKind.INTERFACE &&
|
||||
descriptor.getUnsubstitutedPrimaryConstructor() != null &&
|
||||
superClass.getKind() != ClassKind.INTERFACE &&
|
||||
!superClass.getConstructors().isEmpty() &&
|
||||
!descriptor.isExpect() && !isEffectivelyExternal(descriptor) &&
|
||||
!ErrorUtils.isError(superClass)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user