Files
kotlin-fork/js/js.translator/testData/inline/cases/methodWithIndirectlyReferencedThis.kt
T
2014-03-11 20:04:00 +04:00

13 lines
214 B
Kotlin

package foo
fun box(): Boolean {
return !(A(false).wrap()) and A(true).wrap()
}
class A(val a: Boolean) {
inline fun myInlineMethod(): Boolean {
return a
}
fun wrap() = myInlineMethod()
}