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");
|
||||
|
||||
Reference in New Issue
Block a user