Files
kotlin-fork/compiler/tests-spec/testData/codegen/box/templates/identifiers/infixFunctionCall.kt
T
2018-10-03 13:49:30 +03:00

13 lines
285 B
Kotlin
Vendored

infix fun Int.<!ELEMENT(1)!>(value: Int) = value > 100
infix fun Int.<!ELEMENT(2)!>(value: Int): Int {
return value - 90
}
fun box(): String? {
if (1 + 1 <!ELEMENT(1)!> -1001020) return null
if (1 + 1 <!ELEMENT(2)!> 2004 <!ELEMENT(1)!> -0) return null
return "OK"
}