[JS IR BE] Implement private members lowering to extract private methods from class and transform them into static function

* fix kotlin.Long
 * update tests
This commit is contained in:
Roman Artemev
2018-12-22 13:21:49 +03:00
committed by romanart
parent 75996b1c8e
commit d35b20f764
14 changed files with 252 additions and 8 deletions
@@ -0,0 +1,14 @@
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JVM_IR
interface A {
private fun foo() = "OK"
public fun bar() = foo()
}
class B : A {
private fun foo() = "fail"
}
fun box() = B().bar()