Files
kotlin-fork/js/js.translator/testFiles/inline/cases/methodWithIndirectlyReferencedThis.kt
T
2012-03-28 19:42:56 +04:00

13 lines
205 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()
}