Files
kotlin-fork/backend.native/tests/codegen/function/sum_foo_bar.kt
T
2016-12-27 13:56:03 +03:00

8 lines
174 B
Kotlin

fun foo(a:Int):Int = a
fun bar(a:Int):Int = a
fun sumFooBar(a:Int, b:Int):Int = foo(a) + bar(b)
fun main(args:Array<String>) {
if (sumFooBar(2, 3) != 5) throw Error()
}