Add test on in-place lambda with return + safecall
Currently, diagnostics behavior is undesired. The next commit fixes it ^KT-28061 In Progress
This commit is contained in:
@@ -817,6 +817,11 @@ public class ControlFlowTestGenerated extends AbstractControlFlowTest {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/returnsAndCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallAndInPlaceReturn.kt")
|
||||
public void testSafeCallAndInPlaceReturn() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/safeCallAndInPlaceReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwIfNotCalled.kt")
|
||||
public void testThrowIfNotCalled() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/throwIfNotCalled.kt");
|
||||
|
||||
@@ -817,6 +817,11 @@ public class PseudoValueTestGenerated extends AbstractPseudoValueTest {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/returnsAndCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallAndInPlaceReturn.kt")
|
||||
public void testSafeCallAndInPlaceReturn() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/safeCallAndInPlaceReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwIfNotCalled.kt")
|
||||
public void testThrowIfNotCalled() throws Exception {
|
||||
runTest("compiler/testData/cfgWithStdLib/contracts/throwIfNotCalled.kt");
|
||||
|
||||
+5
@@ -971,6 +971,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/nonReturningInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallAndInPlaceReturn.kt")
|
||||
public void testSafeCallAndInPlaceReturn() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/safeCallAndInPlaceReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalJumpOutsFromInlinedLambda.kt")
|
||||
public void testSeveralJumpOutsFromInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/severalJumpOutsFromInlinedLambda.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -971,6 +971,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/nonReturningInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallAndInPlaceReturn.kt")
|
||||
public void testSafeCallAndInPlaceReturn() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/safeCallAndInPlaceReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalJumpOutsFromInlinedLambda.kt")
|
||||
public void testSeveralJumpOutsFromInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/flowInlining/severalJumpOutsFromInlinedLambda.kt");
|
||||
|
||||
Reference in New Issue
Block a user