Fixed codegen crash on use of protected synthetic extension property

This commit is contained in:
Valentin Kipyatkov
2015-08-11 15:39:55 +03:00
parent d75bece6d0
commit 468919f5d9
6 changed files with 68 additions and 0 deletions
@@ -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
}
@@ -0,0 +1,6 @@
public class _protectedSetter {
private String x = null;
public String getX() { return "OK"; }
protected void setX(String x) { this.x = x; }
}
@@ -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
}
}