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:
Mikhail Glukhikh
2018-07-26 16:54:35 +03:00
parent 6db2037440
commit 1d2438e04e
5 changed files with 69 additions and 1 deletions
@@ -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)
) {