22 lines
382 B
Kotlin
Vendored
22 lines
382 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-50219
|
|
|
|
// FILE: Base.java
|
|
public class Base {
|
|
protected String field;
|
|
protected final String finalField = "finalFieldValue";
|
|
}
|
|
|
|
// FILE: test.kt
|
|
class Derived : Base() {
|
|
fun foo() {
|
|
if (field == null) {
|
|
field.length
|
|
}
|
|
|
|
if (finalField == null) {
|
|
finalField<!UNSAFE_CALL!>.<!>length
|
|
}
|
|
}
|
|
}
|