FIR IDE: mute not passing tests

This commit is contained in:
Ilya Kirillov
2020-06-04 12:24:53 +03:00
parent d317ee1197
commit 19d721d262
10 changed files with 16 additions and 0 deletions
@@ -11,6 +11,8 @@ import org.jetbrains.kotlin.test.InTextDirectivesUtils
import java.io.File
abstract class AbstractFirPsiCheckerTest : AbstractPsiCheckerTest() {
override val captureExceptions: Boolean = false
override fun isFirPlugin(): Boolean = true
override fun setUp() {
@@ -9,6 +9,8 @@ import org.jetbrains.kotlin.idea.test.ProjectDescriptorWithStdlibSources
import org.jetbrains.kotlin.test.InTextDirectivesUtils
abstract class AbstractFirHighlightingTest : AbstractHighlightingTest() {
override val captureExceptions: Boolean = false
override fun getDefaultProjectDescriptor() = ProjectDescriptorWithStdlibSources.INSTANCE
override fun isFirPlugin() = true
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
//package redeclarations {
object <error>A</error> {
val x : Int = 0
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun <info textAttributesKey="KOTLIN_FUNCTION_DECLARATION">test</info>() {
val <info textAttributesKey="KOTLIN_LOCAL_VARIABLE">vect</info> = <info textAttributesKey="KOTLIN_CONSTRUCTOR">MyIterable</info><<info textAttributesKey="KOTLIN_CLASS">Int</info>>()
<info textAttributesKey="KOTLIN_LOCAL_VARIABLE">vect</info>.<info textAttributesKey="KOTLIN_FUNCTION_CALL">filter</info> { <info textAttributesKey="KOTLIN_CLOSURE_DEFAULT_PARAMETER">it</info> != 2 }.<info textAttributesKey="KOTLIN_FUNCTION_CALL">forEach</info> { <info textAttributesKey="KOTLIN_CLOSURE_DEFAULT_PARAMETER">it</info>.<info textAttributesKey="KOTLIN_FUNCTION_CALL">toString</info>() }
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun main(it: Iterator<Any>) {
for (i <caret>in it.iterator()) {}
}
@@ -1,3 +1,4 @@
// IGNORE_FIR
fun main() {
for (i <caret>in 1..2) {}
}
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun main() {
for (i <caret>in "") {}
}
@@ -1,3 +1,4 @@
// IGNORE_FIR
fun test(f: Foo) {
for(i <caret>in f) {}
}
@@ -1,3 +1,4 @@
// IGNORE_FIR
fun test(f: Foo) {
for(i <caret>in f) {}
}
@@ -1,3 +1,4 @@
// IGNORE_FIR
fun test(f: Foo) {
for(i <caret>in f) {}
}