Do not throw an exception when a when-statement with no else makes no match
This commit is contained in:
@@ -4413,16 +4413,46 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest("compiler/testData/codegen/box/when/noElseAssigned.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseAssignedNoMatch.kt")
|
||||
public void testNoElseAssignedNoMatch() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseAssignedNoMatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseExhaustive.kt")
|
||||
public void testNoElseExhaustive() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseExhaustive.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseExhaustiveStatement.kt")
|
||||
public void testNoElseExhaustiveStatement() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseExhaustiveStatement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseExhaustiveUnitExpected.kt")
|
||||
public void testNoElseExhaustiveUnitExpected() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseExhaustiveUnitExpected.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseInRetunedExpression.kt")
|
||||
public void testNoElseInRetunedExpression() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseInRetunedExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseInRetunedExpressionNoMatch.kt")
|
||||
public void testNoElseInRetunedExpressionNoMatch() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseInRetunedExpressionNoMatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseInStatement.kt")
|
||||
public void testNoElseInStatement() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseInStatement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noElseNoMatch.kt")
|
||||
public void testNoElseNoMatch() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/noElseNoMatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableWhen.kt")
|
||||
public void testNullableWhen() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/when/nullableWhen.kt");
|
||||
|
||||
Reference in New Issue
Block a user