[FIR] Fix annotations invalid references diagnostics
This commit is contained in:
committed by
TeamCityServer
parent
261098a122
commit
ae63ad0b6d
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
import java.util.ArrayList
|
||||
|
||||
<!NOT_AN_ANNOTATION_CLASS!>@ArrayList<Int>(1, 1)<!> fun b() {}
|
||||
@<!NOT_AN_ANNOTATION_CLASS!>ArrayList<!><Int>(1, 1) fun b() {}
|
||||
@<!UNRESOLVED_REFERENCE!>Xoo<!>(<!UNRESOLVED_REFERENCE!>x<!>) fun c() {}
|
||||
@java.lang.Deprecated(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>x<!>) fun a() {}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// FILE: a.kt
|
||||
|
||||
annotation class annotation
|
||||
|
||||
// FILE: test/b.kt
|
||||
|
||||
package test
|
||||
|
||||
@test.<!NOT_AN_ANNOTATION_CLASS!>annotation<!> class annotation
|
||||
|
||||
// FILE: other/c.kt
|
||||
|
||||
package other
|
||||
|
||||
annotation class My
|
||||
|
||||
@test.<!NOT_AN_ANNOTATION_CLASS!>annotation<!> class Your
|
||||
|
||||
@My class Our
|
||||
@@ -1,4 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: a.kt
|
||||
|
||||
annotation class annotation
|
||||
@@ -17,4 +16,4 @@ annotation class My
|
||||
|
||||
<!NOT_AN_ANNOTATION_CLASS!>@test.annotation<!> class Your
|
||||
|
||||
@My class Our
|
||||
@My class Our
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo
|
||||
|
||||
@<!NOT_AN_ANNOTATION_CLASS!>Foo<!> class Bar
|
||||
@@ -1,4 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
class Foo
|
||||
|
||||
<!NOT_AN_ANNOTATION_CLASS!>@Foo<!> class Bar
|
||||
<!NOT_AN_ANNOTATION_CLASS!>@Foo<!> class Bar
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
// Class constructor parameter CAN be recursively annotated
|
||||
class RecursivelyAnnotated(<!NOT_AN_ANNOTATION_CLASS, NOT_AN_ANNOTATION_CLASS!>@RecursivelyAnnotated(1)<!> val x: Int)
|
||||
class RecursivelyAnnotated(@<!NOT_AN_ANNOTATION_CLASS, NOT_AN_ANNOTATION_CLASS!>RecursivelyAnnotated<!>(1) val x: Int)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
|
||||
@<!INVISIBLE_REFERENCE!>kotlin.internal.InlineOnly<!>
|
||||
@kotlin.internal.<!INVISIBLE_REFERENCE!>InlineOnly<!>
|
||||
public inline fun <C, R> C.ifEmpty(f: () -> R): R where C : Collection<*>, C : R = if (isEmpty()) f() else this
|
||||
|
||||
public fun <T> listOf(t: T): List<T> = TODO()
|
||||
|
||||
Reference in New Issue
Block a user