[FE] Remove unused SoundSmartcastFromLoopConditionForLoopAssignedVariables language feature
This commit is contained in:
committed by
teamcity
parent
5c8ca0ca9b
commit
0518b84b0b
+3
-9
@@ -28996,15 +28996,9 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakAfter.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakAfter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakBefore.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakBefore() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.kt");
|
||||
@TestMetadata("whileWithAssertInConditionAndBreak.kt")
|
||||
public void testWhileWithAssertInConditionAndBreak() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreak.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-9
@@ -28996,15 +28996,9 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakAfter.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakAfter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakBefore.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakBefore() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.kt");
|
||||
@TestMetadata("whileWithAssertInConditionAndBreak.kt")
|
||||
public void testWhileWithAssertInConditionAndBreak() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreak.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-9
@@ -28996,15 +28996,9 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakAfter.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakAfter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakBefore.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakBefore() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.kt");
|
||||
@TestMetadata("whileWithAssertInConditionAndBreak.kt")
|
||||
public void testWhileWithAssertInConditionAndBreak() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreak.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +SoundSmartcastFromLoopConditionForLoopAssignedVariables
|
||||
|
||||
fun foo() {
|
||||
var x: String? = "123"
|
||||
while (x!!.length < 42) {
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +SoundSmartcastFromLoopConditionForLoopAssignedVariables
|
||||
|
||||
fun foo() {
|
||||
var x: String? = "123"
|
||||
while (x!!.length < 42) {
|
||||
compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.fir.kt
Vendored
-21
@@ -1,21 +0,0 @@
|
||||
// !LANGUAGE: -SoundSmartcastFromLoopConditionForLoopAssignedVariables
|
||||
|
||||
fun foo() {
|
||||
var x: String? = "123"
|
||||
while (x!!.length < 42) {
|
||||
x = null
|
||||
break
|
||||
|
||||
}
|
||||
x<!UNSAFE_CALL!>.<!>length // 'x' is unsoundly smartcasted here
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
var x: List<Int>? = ArrayList<Int>(1)
|
||||
for (i in x!!) {
|
||||
x = null
|
||||
break
|
||||
|
||||
}
|
||||
x<!UNSAFE_CALL!>.<!>size // 'x' is unsoundly smartcasted here
|
||||
}
|
||||
Vendored
-21
@@ -1,21 +0,0 @@
|
||||
// !LANGUAGE: -SoundSmartcastFromLoopConditionForLoopAssignedVariables
|
||||
|
||||
fun foo() {
|
||||
var x: String? = "123"
|
||||
while (x!!.length < 42) {
|
||||
x = null
|
||||
break
|
||||
|
||||
}
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.length // 'x' is unsoundly smartcasted here
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
var x: List<Int>? = ArrayList<Int>(1)
|
||||
for (i in x!!) {
|
||||
x = null
|
||||
break
|
||||
|
||||
}
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.size // 'x' is unsoundly smartcasted here
|
||||
}
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun bar(): kotlin.Unit
|
||||
public fun foo(): kotlin.Unit
|
||||
Generated
+3
-9
@@ -29086,15 +29086,9 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakAfter.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakAfter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whileWithAssertInConditionAndBreakBefore.kt")
|
||||
public void testWhileWithAssertInConditionAndBreakBefore() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.kt");
|
||||
@TestMetadata("whileWithAssertInConditionAndBreak.kt")
|
||||
public void testWhileWithAssertInConditionAndBreak() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreak.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -269,9 +269,6 @@ enum class LanguageFeature(
|
||||
ProhibitEnumDeclaringClass(KOTLIN_1_9, kind = BUG_FIX), // KT-49653
|
||||
StopPropagatingDeprecationThroughOverrides(KOTLIN_1_9, kind = BUG_FIX), // KT-47902
|
||||
|
||||
// Temporarily disabled, see KT-27084/KT-22379
|
||||
SoundSmartcastFromLoopConditionForLoopAssignedVariables(sinceVersion = null, kind = BUG_FIX),
|
||||
|
||||
// Disabled for indefinite time. See KT-48535 and related discussion
|
||||
ApproximateIntegerLiteralTypesInReceiverPosition(sinceVersion = null),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user