Change Signature: Do not force substitution of error types

#EA-81021 Fixed
This commit is contained in:
Alexey Sedunov
2016-05-10 15:34:43 +03:00
parent 962223159a
commit d4aa179336
@@ -88,6 +88,7 @@ fun DeclarationDescriptor.createDeepCopy() = (this as? JavaMethodDescriptor)?.su
private object ForceTypeCopySubstitution : TypeSubstitution() {
override fun get(key: KotlinType) =
with(key) {
if (isError) return@with asTypeProjection()
KotlinTypeImpl.create(
annotations, constructor, isMarkedNullable, arguments, memberScope, capabilities).asTypeProjection()
}