Remove test that become useless after enabling NI everywhere
It checked that with default settings new inference is enabled in IDE and SAM conversions are _disabled_. Now this is useless as NI is enabled everywhere
This commit is contained in:
-24
@@ -1,24 +0,0 @@
|
|||||||
object ForceSam : java.util.Comparator<Runnable> {
|
|
||||||
override fun compare(o1: Runnable, o2: Runnable): Int = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
fun test(r: Runnable) {
|
|
||||||
ForceSam.compare(r, r)
|
|
||||||
ForceSam.compare({}, {})
|
|
||||||
|
|
||||||
ForceSam.compare(r, <error descr="[TYPE_MISMATCH] Type mismatch: inferred type is () -> Unit but Runnable was expected">{}</error>)
|
|
||||||
ForceSam.compare(<error descr="[TYPE_MISMATCH] Type mismatch: inferred type is () -> Unit but Runnable was expected">{}</error>, r)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check that new inference is enabled
|
|
||||||
object Scope {
|
|
||||||
interface A
|
|
||||||
interface B<T>
|
|
||||||
class C<T>
|
|
||||||
|
|
||||||
fun <T, K> foo(<warning descr="[UNUSED_PARAMETER] Parameter 'c' is never used">c</warning>: C<T>) where K : A, K : B<T> {}
|
|
||||||
|
|
||||||
fun usage(c: C<Any>) {
|
|
||||||
foo(c) // should compile only in NI
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -901,10 +901,5 @@ public class FirPsiCheckerTestGenerated extends AbstractFirPsiCheckerTest {
|
|||||||
public void testOperatorCallDiagnosticsOnInOperator() throws Exception {
|
public void testOperatorCallDiagnosticsOnInOperator() throws Exception {
|
||||||
runTest("idea/testData/checker/diagnosticsMessage/operatorCallDiagnosticsOnInOperator.kt");
|
runTest("idea/testData/checker/diagnosticsMessage/operatorCallDiagnosticsOnInOperator.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("standaloneSamConversionIsDisabledInIDE.kt")
|
|
||||||
public void testStandaloneSamConversionIsDisabledInIDE() throws Exception {
|
|
||||||
runTest("idea/testData/checker/diagnosticsMessage/standaloneSamConversionIsDisabledInIDE.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -934,10 +934,5 @@ public class PsiCheckerTestGenerated extends AbstractPsiCheckerTest {
|
|||||||
public void testOperatorCallDiagnosticsOnInOperator() throws Exception {
|
public void testOperatorCallDiagnosticsOnInOperator() throws Exception {
|
||||||
runTest("idea/testData/checker/diagnosticsMessage/operatorCallDiagnosticsOnInOperator.kt");
|
runTest("idea/testData/checker/diagnosticsMessage/operatorCallDiagnosticsOnInOperator.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("standaloneSamConversionIsDisabledInIDE.kt")
|
|
||||||
public void testStandaloneSamConversionIsDisabledInIDE() throws Exception {
|
|
||||||
runTest("idea/testData/checker/diagnosticsMessage/standaloneSamConversionIsDisabledInIDE.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user