Analysis API: Don't resolve references to @Deprecated(HIDDEN)
declarations.
This commit is contained in:
committed by
TeamCityServer
parent
41a1fa25e2
commit
7425986bf0
@@ -0,0 +1,6 @@
|
||||
@Deprecated("don't use i")
|
||||
val i: Int = 1
|
||||
|
||||
fun test() {
|
||||
<caret>i
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) val i: kotlin.Int
|
||||
@@ -0,0 +1,8 @@
|
||||
// UNRESOLVED_REFERENCE
|
||||
|
||||
@Deprecated("don't use i", level = DeprecationLevel.HIDDEN)
|
||||
val i: Int = 1
|
||||
|
||||
fun test() {
|
||||
<caret>i
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
private val i: Int = 1
|
||||
}
|
||||
|
||||
fun test(a: A) {
|
||||
a.<caret>i
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in A) private val i: kotlin.Int
|
||||
Reference in New Issue
Block a user