FIR: Fix test data after making LHS of assignment an expression
KT-54648
This commit is contained in:
committed by
Space Team
parent
ace47c06a5
commit
1eb18f13bd
@@ -1,23 +0,0 @@
|
||||
// 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() {
|
||||
<!INVISIBLE_SETTER!>J()<!UNNECESSARY_SAFE_CALL!>?.<!>x<!> = 1
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
C().foo()
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
|
||||
// FILE: j/J.java
|
||||
|
||||
Reference in New Issue
Block a user