FIR reference resolve test: mute 37/107 cases which aren't yet supported

This commit is contained in:
Mikhail Glukhikh
2019-12-03 12:45:08 +03:00
parent 900227fdfa
commit f8c86d2f9f
38 changed files with 85 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
@file:[kotlin.<caret>Deprecated("message")]
package foo
@@ -1,3 +1,5 @@
// IGNORE_FIR
@file:[<caret>D("message")]
package foo
@@ -1,3 +1,5 @@
// IGNORE_FIR
class Foo
class C {
@@ -1,3 +1,5 @@
// IGNORE_FIR
val abc = <caret>[1, 2, 3]
// REF: (kotlin).arrayOf(vararg T)
@@ -1,3 +1,5 @@
// IGNORE_FIR
val abc: IntArray = [1, 2, 3<caret>]
// REF: (kotlin).intArrayOf(vararg kotlin.Int)
@@ -1,3 +1,5 @@
// IGNORE_FIR
class Controller {
suspend fun suspendHere(x: Continuation<Unit>) {
}
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
package ctrl_click
fun IntArray(vararg content : Int) : IntArray = content
@@ -1,3 +1,5 @@
// IGNORE_FIR
@java.lang.annotation.Retention(va<caret>lue = java.lang.annotation.RetentionPolicy.RUNTIME)
annotation class Anno()
@@ -1,3 +1,5 @@
// IGNORE_FIR
class A {
fun foo() {
<caret>JavaClass()
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
lateinit var x: java.lang.Readable
lateinit var y: java.nio.CharBuffer
@@ -1,3 +1,5 @@
// IGNORE_FIR
package a
class A() {
@@ -1,3 +1,5 @@
// IGNORE_FIR
package a
class MyPair {
@@ -1,3 +1,5 @@
// IGNORE_FIR
package test1.test2
class Some()
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
val c = java.util.<caret>Comparator {(x: Int, y: Int) -> 1}
// REF: (java.util).Comparator
@@ -1,3 +1,5 @@
// IGNORE_FIR
val c = java.util.<caret>Comparator<Int> { x, y -> 1 }
// REF: (java.util).Comparator
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
interface A {
fun foo()
}
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun JavaClass.foo(javaClass: JavaClass) {
print(javaClass.<caret>something)
javaClass.<caret>something = 1
@@ -1,3 +1,5 @@
// IGNORE_FIR
class Generic<T>
class C {
@@ -1,3 +1,5 @@
// IGNORE_FIR
val v: UnknownClass<<caret>String>
// REF: (kotlin).String
@@ -1,3 +1,5 @@
// IGNORE_FIR
val v: UnknownClass<<caret>String>()
// REF: (kotlin).String
@@ -1,3 +1,5 @@
// IGNORE_FIR
class Foo<T, V>
class Bar: Foo<<caret>String
@@ -1,3 +1,5 @@
// IGNORE_FIR
package testing
class TestClass(val test: (<caret>String) -> Int)
@@ -1,3 +1,5 @@
// IGNORE_FIR
package foo
class A
@@ -1,3 +1,5 @@
// IGNORE_FIR
package foo
class A
@@ -1,3 +1,5 @@
// IGNORE_FIR
val x: Int <caret>by Foo()
class Foo
@@ -1,3 +1,5 @@
// IGNORE_FIR
val x: Int <caret>by Foo()
class Foo {
@@ -1,3 +1,5 @@
// IGNORE_FIR
var x : Int <caret>by Baz()
interface Foo {
@@ -1,3 +1,5 @@
// IGNORE_FIR
var x : Int <caret>by Baz()
interface Foo {
@@ -1,3 +1,5 @@
// IGNORE_FIR
val x: Int <caret>by lazy {1}
// REF: (for kotlin.Lazy<T> in kotlin).getValue(kotlin.Any?, kotlin.reflect.KProperty<*>)
@@ -1,3 +1,5 @@
// IGNORE_FIR
import kotlin.properties.Delegates
var x: Int <caret>by Delegates.notNull()
@@ -1,3 +1,5 @@
// IGNORE_FIR
val foo: Int <caret>by Bar()
class Bar
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun main(it: Iterator<Any>) {
for (i <caret>in it.iterator()) {}
}
@@ -1,3 +1,5 @@
// 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,5 @@
// IGNORE_FIR
fun test(f: Foo) {
for(i <caret>in f) {}
}
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun test(f: Foo) {
for(i <caret>in f) {}
}
@@ -1,3 +1,5 @@
// IGNORE_FIR
fun test(f: Foo) {
for(i <caret>in f) {}
}
@@ -5,7 +5,9 @@
package org.jetbrains.kotlin.idea.resolve
import org.jetbrains.kotlin.idea.completion.test.configureWithExtraFile
import org.jetbrains.kotlin.idea.fir.FirResolution
import org.jetbrains.kotlin.test.InTextDirectivesUtils
abstract class AbstractFirReferenceResolveTest : AbstractReferenceResolveTest() {
override fun setUp() {
@@ -13,6 +15,15 @@ abstract class AbstractFirReferenceResolveTest : AbstractReferenceResolveTest()
FirResolution.enabled = true
}
override fun doTest(path: String) {
assert(path.endsWith(".kt")) { path }
myFixture.configureWithExtraFile(path, ".Data")
if (InTextDirectivesUtils.isDirectiveDefined(myFixture.file.text, "IGNORE_FIR")) {
return
}
performChecks()
}
override fun tearDown() {
FirResolution.enabled = false
super.tearDown()