[FIR] Remove COMPARE_WITH_LIGHT_TREE from default directives of fir diagnostic tests
This commit is contained in:
committed by
teamcityserver
parent
f7aabf03f8
commit
3fc7e0ed03
@@ -1,3 +1,5 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
|
||||
fun List<String>.modify() {
|
||||
<!VARIABLE_EXPECTED{PSI}!>this<!> += "Alpha"
|
||||
<!VARIABLE_EXPECTED{PSI}!>this<!> += "Omega"
|
||||
@@ -16,4 +18,4 @@ fun Set<String>.modify() {
|
||||
|
||||
fun Any.modifySet() {
|
||||
(this as Set<Int>) += 42
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
package org.jetbrains.kotlin.fir.builder
|
||||
|
||||
@DslMarker
|
||||
annotation class FirBuilderDsl
|
||||
annotation class FirBuilderDsl
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !CHECK_TYPE
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !CHECK_TYPE
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
fun foo(@<!UNRESOLVED_REFERENCE!>varargs<!> f : Int) {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
fun foo(@<!UNRESOLVED_REFERENCE!>varargs<!> f : Int) {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
package bar
|
||||
|
||||
<!MUST_BE_INITIALIZED!><!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@<!INAPPLICABLE_FILE_TARGET!>file<!>:foo<!>
|
||||
@@ -17,4 +18,4 @@ interface T
|
||||
|
||||
annotation class foo
|
||||
annotation class bar
|
||||
annotation class baz
|
||||
annotation class baz
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
package bar
|
||||
|
||||
<!MUST_BE_INITIALIZED!><!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@<!INAPPLICABLE_FILE_TARGET!>file<!>:foo<!>
|
||||
@@ -17,4 +18,4 @@ interface T
|
||||
|
||||
annotation class foo
|
||||
annotation class bar
|
||||
annotation class baz
|
||||
annotation class baz
|
||||
|
||||
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
<!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@file:foo<!>
|
||||
@foo @bar
|
||||
@<!INAPPLICABLE_FILE_TARGET{PSI}!>file<!>:[<!INAPPLICABLE_FILE_TARGET{LT}, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>baz<!>]
|
||||
@@ -5,4 +6,4 @@ fun test() {}
|
||||
|
||||
annotation class foo
|
||||
annotation class bar
|
||||
annotation class baz
|
||||
annotation class baz
|
||||
|
||||
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
<!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@file:foo<!>
|
||||
@foo @bar
|
||||
@<!INAPPLICABLE_FILE_TARGET!>file<!>:[<!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>baz<!>]
|
||||
@@ -5,4 +6,4 @@ fun test() {}
|
||||
|
||||
annotation class foo
|
||||
annotation class bar
|
||||
annotation class baz
|
||||
annotation class baz
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
package h
|
||||
|
||||
class Square() {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
package h
|
||||
|
||||
class Square() {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
fun Any.foo1() : (i : Int) -> Unit {
|
||||
return {}
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,7 +1,8 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
fun Any.foo1() : (i : Int) -> Unit {
|
||||
return {}
|
||||
}
|
||||
|
||||
fun test(a : Any) {
|
||||
a.foo1()(<!NO_VALUE_FOR_PARAMETER("i")!>)<!>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
package toplevelObjectDeclarations
|
||||
|
||||
open class Foo(y : Int) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
package toplevelObjectDeclarations
|
||||
|
||||
open class Foo(y : Int) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
//KT-328 Local function in function literals cause exceptions
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !WITH_NEW_INFERENCE
|
||||
//KT-328 Local function in function literals cause exceptions
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
//KT-5971 Missing error when fun argument is safe call
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
//KT-5971 Missing error when fun argument is safe call
|
||||
|
||||
-4
@@ -73,10 +73,6 @@ fun TestConfigurationBuilder.baseFirDiagnosticTestConfiguration() {
|
||||
|
||||
useMetaInfoProcessors(::PsiLightTreeMetaInfoProcessor)
|
||||
|
||||
defaultDirectives {
|
||||
+COMPARE_WITH_LIGHT_TREE
|
||||
}
|
||||
|
||||
forTestsMatching("compiler/testData/diagnostics/*") {
|
||||
useAfterAnalysisCheckers(
|
||||
::FirIdenticalChecker,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// SKIP_TXT
|
||||
|
||||
// TESTCASE NUMBER: 1
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
// SKIP_TXT
|
||||
|
||||
/*
|
||||
@@ -73,4 +74,4 @@ fun case_8(x: Any?) {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & kotlin.String?")!>x<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & kotlin.String?")!>x<!><!UNSAFE_CALL!>.<!>length
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user