FIR checker: introduce NO_(GET|SET)_METHOD
Besides introducing new diagnostics, this commit unifies source usages for array accesses in PSI & LT.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
651fd4ad9f
commit
e1c80ac75c
@@ -15,7 +15,7 @@ fun case_1(a: MutableList<out MutableList<MutableList<MutableList<MutableList<Mu
|
||||
if (f != null) {
|
||||
val g = f[0]
|
||||
if (g != null) {
|
||||
val h = <!UNRESOLVED_REFERENCE!>g[0]<!>
|
||||
val h = g<!NO_GET_METHOD!>[0]<!>
|
||||
if (h != null) {
|
||||
h.<!UNRESOLVED_REFERENCE!>inc<!>()
|
||||
}
|
||||
@@ -43,7 +43,7 @@ fun case_2(a: MutableList<out MutableList<MutableList<MutableList<out MutableLis
|
||||
if (f != null) {
|
||||
val g = f[0]
|
||||
if (g != null) {
|
||||
val h = <!UNRESOLVED_REFERENCE!>g[0]<!> // no SMARTCAST diagnostic
|
||||
val h = g<!NO_GET_METHOD!>[0]<!> // no SMARTCAST diagnostic
|
||||
if (h != null) {
|
||||
h.<!UNRESOLVED_REFERENCE!>inc<!>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user