Generate private methods in TraitImpl as private, don't generate delegation to private trait methods

This commit is contained in:
Michael Bogdanov
2015-12-04 16:12:11 +03:00
parent a2d644f708
commit 7c7786f7d0
14 changed files with 81 additions and 18 deletions
@@ -0,0 +1,16 @@
interface Z{
private fun extension(): String {
return "OK"
}
}
object Z2 : Z {
}
fun box() : String {
val size = Class.forName("Z2").declaredMethods.size
if (size != 0) return "fail: $size"
return "OK"
}