Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/extensionToPrimitive.kt
T
2017-07-19 12:24:09 +03:00

9 lines
276 B
Kotlin
Vendored

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