Files
kotlin-fork/js/js.translator/testData/callableReference/function/cases/extensionToPrimitive.kt
T
2014-07-30 17:50:16 +04:00

8 lines
252 B
Kotlin

// This test was adapted from compiler/testData/codegen/boxWithStdlib/callableReference/function/local/.
package foo
fun box(): String {
fun Int.is42With(that: Int) = this + 2 * that == 42
return if (16.(Int::is42With)(13)) "OK" else "Fail"
}