K2: reproduce KT-60229
This commit is contained in:
committed by
Space Team
parent
c350280e64
commit
402e1de5fe
+6
@@ -6973,6 +6973,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("returnAliasedUnitNotRequired.kt")
|
||||||
|
public void testReturnAliasedUnitNotRequired() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ReturnFromFunctionInObject.kt")
|
@TestMetadata("ReturnFromFunctionInObject.kt")
|
||||||
public void testReturnFromFunctionInObject() throws Exception {
|
public void testReturnFromFunctionInObject() throws Exception {
|
||||||
|
|||||||
+6
@@ -6973,6 +6973,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("returnAliasedUnitNotRequired.kt")
|
||||||
|
public void testReturnAliasedUnitNotRequired() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ReturnFromFunctionInObject.kt")
|
@TestMetadata("ReturnFromFunctionInObject.kt")
|
||||||
public void testReturnFromFunctionInObject() throws Exception {
|
public void testReturnFromFunctionInObject() throws Exception {
|
||||||
|
|||||||
+6
@@ -6973,6 +6973,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("returnAliasedUnitNotRequired.kt")
|
||||||
|
public void testReturnAliasedUnitNotRequired() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ReturnFromFunctionInObject.kt")
|
@TestMetadata("ReturnFromFunctionInObject.kt")
|
||||||
public void testReturnFromFunctionInObject() throws Exception {
|
public void testReturnFromFunctionInObject() throws Exception {
|
||||||
|
|||||||
+6
@@ -6979,6 +6979,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("returnAliasedUnitNotRequired.kt")
|
||||||
|
public void testReturnAliasedUnitNotRequired() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ReturnFromFunctionInObject.kt")
|
@TestMetadata("ReturnFromFunctionInObject.kt")
|
||||||
public void testReturnFromFunctionInObject() throws Exception {
|
public void testReturnFromFunctionInObject() throws Exception {
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// ISSUE: KT-60299
|
||||||
|
|
||||||
|
private typealias T = Unit
|
||||||
|
|
||||||
|
internal fun x(): T {
|
||||||
|
val something = "OK"
|
||||||
|
something.hashCode()
|
||||||
|
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// ISSUE: KT-60299
|
||||||
|
|
||||||
|
private typealias T = Unit
|
||||||
|
|
||||||
|
internal fun x(): T {
|
||||||
|
val something = "OK"
|
||||||
|
something.hashCode()
|
||||||
|
}
|
||||||
Generated
+6
@@ -6979,6 +6979,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("returnAliasedUnitNotRequired.kt")
|
||||||
|
public void testReturnAliasedUnitNotRequired() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ReturnFromFunctionInObject.kt")
|
@TestMetadata("ReturnFromFunctionInObject.kt")
|
||||||
public void testReturnFromFunctionInObject() throws Exception {
|
public void testReturnFromFunctionInObject() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user