[Test] Remove some outdated tests from LocalInspectionTestGenerated
Those tests are referring to outdated language features which are meaningless for language version 1.5
This commit is contained in:
-8
@@ -1,8 +0,0 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference -XXLanguage:+SamConversionForKotlinFunctions -XXLanguage:+FunctionalInterfaceConversion -XXLanguage:-SamConversionPerArgument
|
||||
// PROBLEM: none
|
||||
|
||||
fun test(r1: Runnable, r2: Runnable) {}
|
||||
|
||||
fun usage(r1: Runnable) {
|
||||
test(r1, Runnable<caret> {})
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference -XXLanguage:+SamConversionForKotlinFunctions -XXLanguage:+FunctionalInterfaceConversion -XXLanguage:-SamConversionPerArgument
|
||||
// PROBLEM: none
|
||||
|
||||
fun interface KtRunnable {
|
||||
fun run()
|
||||
}
|
||||
|
||||
fun test(r1: KtRunnable, r2: KtRunnable) {}
|
||||
|
||||
fun usage(r1: KtRunnable) {
|
||||
test(r1, KtRunnable<caret> {})
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference -XXLanguage:+SamConversionForKotlinFunctions -XXLanguage:+FunctionalInterfaceConversion -XXLanguage:-SamConversionPerArgument
|
||||
// PROBLEM: none
|
||||
|
||||
fun test(r1: Runnable, r2: Runnable) {}
|
||||
|
||||
fun usage() {
|
||||
test(Runnable { return@Runnable }, Runnable<caret> {})
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun test() {
|
||||
try {
|
||||
} catch (_: Throwable) {
|
||||
<caret>`_`.printStackTrace()
|
||||
}
|
||||
}
|
||||
-20
@@ -8739,21 +8739,6 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/inspectionsLocal/redundantSamConstructor"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conversionPerArgumentDisabled1.kt")
|
||||
public void testConversionPerArgumentDisabled1() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantSamConstructor/conversionPerArgumentDisabled1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conversionPerArgumentDisabled2.kt")
|
||||
public void testConversionPerArgumentDisabled2() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantSamConstructor/conversionPerArgumentDisabled2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conversionPerArgumentDisabled3.kt")
|
||||
public void testConversionPerArgumentDisabled3() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantSamConstructor/conversionPerArgumentDisabled3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conversionPerArgumentEnabled1.kt")
|
||||
public void testConversionPerArgumentEnabled1() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantSamConstructor/conversionPerArgumentEnabled1.kt");
|
||||
@@ -9656,11 +9641,6 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
runTest("idea/testData/inspectionsLocal/removeRedundantBackticks/property.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscore.kt")
|
||||
public void testUnderscore() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/removeRedundantBackticks/underscore.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscores.kt")
|
||||
public void testUnderscores() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/removeRedundantBackticks/underscores.kt");
|
||||
|
||||
Reference in New Issue
Block a user