Generate accessor for private companion object

This commit is contained in:
Dmitry Petrov
2018-06-21 17:49:21 +03:00
parent ba3411e7d7
commit d35a92a81d
23 changed files with 583 additions and 7 deletions
@@ -0,0 +1,14 @@
class Outer {
private companion object {
val result = "OK"
fun bar() = result
}
fun test() = bar()
}
// 0 access\$Companion
// 1 INVOKEVIRTUAL Outer\$Companion\.bar
// 1 INVOKEVIRTUAL Outer\$Companion\.getResult