Fix TypeConstructor.isFinal for synthetic class descriptors

As in LazyClassTypeConstructor.isFinal, check if the class modality is
Modality.FINAL
This commit is contained in:
Alexander Udalov
2017-10-13 20:05:08 +02:00
parent 2682837fd7
commit dc02b2e3ab
7 changed files with 8 additions and 10 deletions
@@ -55,7 +55,7 @@ open class KnownClassDescriptor(
fun initialize(declaredTypeParameters: List<TypeParameterDescriptor>, supertypes: List<KotlinType>) {
this.declaredTypeParameters = declaredTypeParameters
this.supertypes = supertypes
this.typeConstructor = ClassTypeConstructorImpl(this, true, declaredTypeParameters, supertypes)
this.typeConstructor = ClassTypeConstructorImpl(this, declaredTypeParameters, supertypes)
this.defaultType = TypeUtils.makeUnsubstitutedType(this, unsubstitutedMemberScope)
}