Files
kotlin-fork/compiler/testData/integration/smoke/simplestSuspendMainIR/hello.kt
T
Kristoffer Andersen 5b62c9e54d [WIP] Add Compiler Smoke Tests for (suspend) main methods
This commit ports the (parameterless) main integration tests in
`CompilerSmokeTest` to the IR backend. It also includes a simple
suspend main test.

The advanced ones (like `helloAppSuspendParameterlessMain`) are
currently blocked by pending changes to capturing suspend lambdas,
which are underway.
2020-02-21 12:00:50 +01:00

11 lines
180 B
Kotlin
Vendored

package Hello
suspend fun f(o: String, k: String): String {
return o + k
}
suspend fun main(args: Array<String>) {
val result = f(args[0], args[1])
println(result)
}