[Tests] Add spec tests in FIR + LightTree configuration
In some tests PSI and LT differ. Test data was fixed accordingly. In the following tests I consider that difference is acceptable: - compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/3.1.kt - compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/4.1.kt This is because: - It only happens when recovering from syntax errors happened above in code. I was unable to reproduce it in valid code. - It doesn't break parsing further, the rest of the errors in file are reported identically. The rest of the tests will be fixed in subsequent commits. ^KT-62704 Fixed
This commit is contained in:
committed by
Space Team
parent
18b9cf3bc6
commit
8edb1842a5
Vendored
+2
-1
@@ -1,5 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
@@ -71,4 +72,4 @@ fun case6() {
|
||||
} catch (e: ExcA)<!SYNTAX!><!>
|
||||
catch (e: ExcB) {
|
||||
}
|
||||
}
|
||||
}<!SYNTAX{LT}!><!>
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
|
||||
Vendored
+2
-1
@@ -1,5 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
@@ -33,7 +34,7 @@ fun case2() {
|
||||
throwException()
|
||||
} catch (e: ExcB) {
|
||||
} finally
|
||||
<!SYNTAX!><!>}<!SYNTAX!><!>
|
||||
<!SYNTAX!><!>}<!SYNTAX{PSI}!><!>
|
||||
|
||||
// TESTCASE NUMBER: 3
|
||||
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
// COMPARE_WITH_LIGHT_TREE
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
|
||||
Reference in New Issue
Block a user