Files
kotlin-fork/backend.native/tests/codegen/function/sum_foo_bar.kt
T
2017-10-20 18:25:05 +03:00

12 lines
225 B
Kotlin

package codegen.function.sum_foo_bar
import kotlin.test.*
fun foo(a:Int):Int = a
fun bar(a:Int):Int = a
fun sumFooBar(a:Int, b:Int):Int = foo(a) + bar(b)
@Test fun runTest() {
if (sumFooBar(2, 3) != 5) throw Error()
}