Generate private interface companion object as package-private synthetic

This commit is contained in:
Dmitry Petrov
2018-09-25 15:40:50 +03:00
parent 7949ac1080
commit 792ff3c39e
14 changed files with 220 additions and 2 deletions
@@ -0,0 +1,14 @@
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
// IGNORE_BACKEND: JS, JS_IR, JVM_IR
interface A {
fun test() = ok()
private companion object {
fun ok() = "OK"
}
}
class C : A
fun box() = C().test()