[NI] Don't stop on a candidate with unstable smartcast error
#KT-36847 Fixed
This commit is contained in:
+1
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user