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

11 lines
199 B
Kotlin

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