[AA] check symbol pointer restoring without psi anchor
^KT-54311
This commit is contained in:
committed by
Space Team
parent
636024f676
commit
4bd604f2ed
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
annotation class Anno(val param1: String, val param2: Int)
|
||||
|
||||
@Anno(param1 = "param", 2)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class AnonymousContainer {
|
||||
val anonymousObject = object : Runnable {
|
||||
override fun run() {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
var p: Int
|
||||
get() = field
|
||||
set(value) {
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
class A {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class A {
|
||||
val i: Int
|
||||
init {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class A {
|
||||
val a: Int = 10
|
||||
fun x() = 10
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
class A(val a: Int, b: String) {
|
||||
}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
class A() {
|
||||
constructor(x: Int): this()
|
||||
constructor(y: Int, z: String) : this(y)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
import org.jetbrains.annotations.NotNull
|
||||
class A<@NotNull T, R> {
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
context(kotlin.Int, s@kotlin.String)
|
||||
class A {
|
||||
constructor(int: Int) {}
|
||||
|
||||
Vendored
+1
@@ -1,2 +1,3 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
context(Int, s@String)
|
||||
fun y(){}
|
||||
Vendored
+1
@@ -1,2 +1,3 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
context(Int, s@String)
|
||||
val y get() = 10
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
// WITH_STDLIB
|
||||
|
||||
class MyColor(val x: Int, val y: Int, val z: Int)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
// WITH_STDLIB
|
||||
|
||||
@Deprecated("don't use i")
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
data class P(val x: Int, val y: Int)
|
||||
|
||||
fun destruct(): Int {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class Foo {
|
||||
val p : dynamic = null
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
enum class X {
|
||||
Y, Z;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
enum class Style(val value: String) {
|
||||
SHEET("foo") {
|
||||
override val exitAnimation: String
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
var p: Int
|
||||
field = "test"
|
||||
get() = field.length
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
fun String.foo(): Int = 10
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
fun usage() {
|
||||
for (loopVariable in 1..10) {}
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
fun foo(x: Int) {}
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
fun <X> foo(x: X) {}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class A {
|
||||
constructor(i: Int)
|
||||
}
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
fun foo(): Int = 10
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
fun foo() {
|
||||
val lam1 = { a: Int ->
|
||||
val b = 1
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
// WITH_STDLIB
|
||||
|
||||
@JvmField
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
// WITH_STDLIB
|
||||
|
||||
class Foo {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
fun yyy() {
|
||||
val q = 10
|
||||
fun aaa() {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
class A {
|
||||
fun x(): Int
|
||||
fun y()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
class A {
|
||||
val x: Int = 10
|
||||
val Int.y get() = this
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class X<T> {
|
||||
inner class Y<T1>
|
||||
class Z<T2>
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
fun x(): Int = 10
|
||||
fun y() {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
val x: Int = 10
|
||||
val Int.y get() = this
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
|
||||
class X<T>
|
||||
|
||||
private typealias Y<Z> = X<Z>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class Anno1
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
inline fun foo(
|
||||
inlineParameter: () -> Int,
|
||||
crossinline crossinlineParameter: () -> Int,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
fun primitive(vararg a: Int)
|
||||
fun nullablePrimitive(vararg b: Float?)
|
||||
fun nonPrimitive(vararg c: Any)
|
||||
|
||||
Reference in New Issue
Block a user