[FIR] Properly support smartcasts on stable when subjects in when conditions
^KT-49860 Fixed
This commit is contained in:
committed by
teamcityserver
parent
20425fb458
commit
330574cab6
+6
@@ -3657,6 +3657,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
public void testWhen() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/when.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenSubjectExpression.kt")
|
||||
public void testWhenSubjectExpression() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/whenSubjectExpression.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user