Reproduce KT-45475: no smartcast after conditional throw in try expression

This commit is contained in:
Jinseong Jeon
2021-03-15 22:25:13 -07:00
committed by TeamCityServer
parent 1f6f996faf
commit 7e5b562b33
5 changed files with 211 additions and 0 deletions
@@ -25745,6 +25745,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/smartCasts/threeImplicitReceivers.kt");
}
@Test
@TestMetadata("throwInTry.kt")
public void testThrowInTry() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/throwInTry.kt");
}
@Test
@TestMetadata("twoImplicitReceivers.kt")
public void testTwoImplicitReceivers() throws Exception {