FIR reference resolve test: mute 37/107 cases which aren't yet supported
This commit is contained in:
@@ -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>) {
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
interface A {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
val x: Int <caret>by Foo()
|
||||
|
||||
class Foo
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
val x: Int <caret>by Foo()
|
||||
|
||||
class Foo {
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
var x : Int <caret>by Baz()
|
||||
|
||||
interface Foo {
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
var x : Int <caret>by Baz()
|
||||
|
||||
interface Foo {
|
||||
|
||||
+2
@@ -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<*>)
|
||||
|
||||
+2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user