diff --git a/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt b/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt index ac117c1efb7..687eb6acf33 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt @@ -74,7 +74,7 @@ object KotlinTypeFactory { annotations: Annotations, descriptor: ClassDescriptor, arguments: List - ): SimpleType = simpleType(annotations, descriptor.typeConstructor, arguments, false, descriptor.getMemberScope(arguments)) + ): SimpleType = simpleType(annotations, descriptor.typeConstructor, arguments, nullable = false) @JvmStatic fun simpleType( @@ -82,9 +82,8 @@ object KotlinTypeFactory { annotations: Annotations = baseType.annotations, constructor: TypeConstructor = baseType.constructor, arguments: List = baseType.arguments, - nullable: Boolean = baseType.isMarkedNullable, - memberScope: MemberScope = baseType.memberScope - ): SimpleType = simpleType(annotations, constructor, arguments, nullable, memberScope) + nullable: Boolean = baseType.isMarkedNullable + ): SimpleType = simpleType(annotations, constructor, arguments, nullable) @JvmStatic fun flexibleType(lowerBound: SimpleType, upperBound: SimpleType): UnwrappedType {