[NI] Fix resolution status for UnstableSmartCastDiagnostic

RESOLVED_WITH_ERROR was initially added for reproducing OI behavior.
The intention was to preserve resolution into unstable smart cast and to keep failing candidate.
However, this idea was abandoned after OI behavior proved inconsistent in cases involving generics.

This commit restores RUNTIME_ERROR status of UnstableSmartCastDiagnostic.

^KT-41357 Fixed
This commit is contained in:
Pavel Kirpichenkov
2020-08-31 19:27:45 +03:00
parent 5e71068e61
commit 2979c37001
6 changed files with 37 additions and 1 deletions
@@ -29652,6 +29652,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/regressions/kt39088.kt");
}
@TestMetadata("kt41357.kt")
public void testKt41357() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt41357.kt");
}
@TestMetadata("kt4142.kt")
public void testKt4142() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt4142.kt");