Files
kotlin-fork/js/js.translator/testData/callableReference/function/cases/booleanNotIntrinsic.kt
T
2016-03-09 10:25:38 +03:00

9 lines
250 B
Kotlin
Vendored

// This test was adapted from compiler/testData/codegen/box/callableReference/function/.
package foo
fun box(): String {
if ((Boolean::not)(true) != false) return "Fail 1"
if ((Boolean::not)(false) != true) return "Fail 2"
return "OK"
}