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