Fixed codegen crash on use of protected synthetic extension property
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
public class _protected {
|
||||
protected String getOk() { return "OK"; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package p
|
||||
|
||||
import _protected
|
||||
|
||||
fun box(): String {
|
||||
return KotlinClass().ok()
|
||||
}
|
||||
|
||||
class KotlinClass : _protected() {
|
||||
fun ok() = ok
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class _protectedSetter {
|
||||
private String x = null;
|
||||
|
||||
public String getX() { return "OK"; }
|
||||
protected void setX(String x) { this.x = x; }
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package p
|
||||
|
||||
import _protectedSetter
|
||||
|
||||
fun box(): String {
|
||||
return KotlinClass().ok()
|
||||
}
|
||||
|
||||
class KotlinClass : _protectedSetter() {
|
||||
fun ok(): String {
|
||||
x = "o"
|
||||
x += "k"
|
||||
return x
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user