Add test for private inline class method call from inline lambda

This commit is contained in:
Dmitry Petrov
2018-09-24 10:22:50 +03:00
parent 2e6d53a43f
commit 88cc900dc7
6 changed files with 35 additions and 0 deletions
@@ -0,0 +1,10 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline class R(private val r: Int) {
fun test() = run { ok() }
private fun ok() = "OK"
}
fun box() = R(0).test()