11 lines
199 B
Kotlin
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
|
|
}
|
|
} |