Refactoring. Removed all usages of asSimpleType except related to TypeSubstitution.
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ object InternalFlexibleTypeTransformer : TypeTransformerForTests() {
|
||||
val descriptor = kotlinType.constructor.declarationDescriptor
|
||||
if (descriptor != null && FLEXIBLE_TYPE_CLASSIFIER.asSingleFqName().toUnsafe() == DescriptorUtils.getFqName(descriptor)
|
||||
&& kotlinType.arguments.size == 2) {
|
||||
return KotlinTypeFactory.flexibleType(kotlinType.arguments[0].type.asSimpleType(), kotlinType.arguments[1].type.asSimpleType())
|
||||
return KotlinTypeFactory.flexibleType(kotlinType.arguments[0].type.unwrap() as SimpleType, kotlinType.arguments[1].type.unwrap() as SimpleType)
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ public class SingleAbstractMethodUtils {
|
||||
assert type != null : "Substitution based on type with no projections '" + noProjectionsSamType +
|
||||
"' should not end with conflict";
|
||||
|
||||
SimpleType simpleType = KotlinTypeKt.asSimpleType(type);
|
||||
SimpleType simpleType = TypeSubstitutionKt.asSimpleType(type);
|
||||
|
||||
return simpleType.makeNullableAsSpecified(samType.isMarkedNullable());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user