[K2] Ignore failing tests for isUsedAsExpression
Those tests do not pass at the moment because of KTIJ-23143
This commit is contained in:
+4
-1
@@ -3,4 +3,7 @@ fun test() {
|
||||
}
|
||||
|
||||
// IGNORE_FE10
|
||||
// In K2, references to types are not regarded as used, regardless of parentheses.
|
||||
// In K2, references to types are not regarded as used, regardless of parentheses.
|
||||
|
||||
// IGNORE_FIR
|
||||
// Does not pass because of KTIJ-23143
|
||||
+4
-1
@@ -1,3 +1,6 @@
|
||||
fun test() {
|
||||
val string = <expr>String</expr>::class
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_FIR
|
||||
// Does not pass because of KTIJ-23143
|
||||
+4
-1
@@ -1,3 +1,6 @@
|
||||
fun test() {
|
||||
val string = <expr>String</expr>::class
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_FIR
|
||||
// Does not pass because of KTIJ-23143
|
||||
+1
@@ -10,4 +10,5 @@ import org.jetbrains.kotlin.test.directives.model.SimpleDirectivesContainer
|
||||
object AnalysisApiTestDirectives : SimpleDirectivesContainer() {
|
||||
val DISABLE_DEPENDED_MODE by directive("Analysis in dependent mode should not be run in this test")
|
||||
val IGNORE_FE10 by directive("FE10 Analysis API implementation test should mot be run")
|
||||
val IGNORE_FIR by directive("FIR Analysis API implementation test should mot be run")
|
||||
}
|
||||
+6
-1
@@ -135,7 +135,9 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
|
||||
return
|
||||
}
|
||||
|
||||
if (configurator.frontendKind == FrontendKind.Fe10 && isFe10DisabledForTheTest()) {
|
||||
if (configurator.frontendKind == FrontendKind.Fe10 && isFe10DisabledForTheTest() ||
|
||||
configurator.frontendKind == FrontendKind.Fir && isFirDisabledForTheTest()
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -171,6 +173,9 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
|
||||
private fun isFe10DisabledForTheTest(): Boolean =
|
||||
AnalysisApiTestDirectives.IGNORE_FE10 in testServices.moduleStructure.allDirectives
|
||||
|
||||
private fun isFirDisabledForTheTest(): Boolean =
|
||||
AnalysisApiTestDirectives.IGNORE_FIR in testServices.moduleStructure.allDirectives
|
||||
|
||||
protected fun <R> analyseForTest(contextElement: KtElement, action: KtAnalysisSession.() -> R): R {
|
||||
return if (configurator.analyseInDependentSession) {
|
||||
val originalContainingFile = contextElement.containingKtFile
|
||||
|
||||
Reference in New Issue
Block a user