[NI] Don't stop on a candidate with unstable smartcast error

#KT-36847 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-02-20 03:08:29 +03:00
parent 162a2d5851
commit 83824d0ba6
7 changed files with 86 additions and 100 deletions
@@ -152,9 +152,7 @@ sealed class UnstableSmartCast(
targetType: UnwrappedType,
isReceiver: Boolean = false, // for reproducing OI behaviour
): UnstableSmartCast {
return if (isReceiver)
UnstableSmartCastResolutionError(argument, targetType)
else UnstableSmartCastDiagnosticError(argument, targetType)
return UnstableSmartCastResolutionError(argument, targetType)
}
}
}