[FE 1.0] Report INVISIBLE_MEMBER on all qualified expressions including safe call ones
^KT-47621 Fixed
This commit is contained in:
committed by
teamcity
parent
e63e889a1f
commit
fb21937eb1
@@ -0,0 +1,23 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// FILE: j/J.java
|
||||
package j;
|
||||
|
||||
public class J {
|
||||
public int getX() { return 1; }
|
||||
protected void setX(int value) { throw new RuntimeException(); }
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
import j.*
|
||||
|
||||
class C : J() {
|
||||
fun foo() {
|
||||
J()<!UNNECESSARY_SAFE_CALL!>?.<!><!INVISIBLE_SETTER!>x<!> = 1
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
C().foo()
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user