Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/exitProcess.kt
T
Jinseong Jeon 6427117a35 FIR CFG: correct edge label from a node that returns Nothing
If it's not within a try/catch/finally, that should be an uncaught
exception path.

^KT-45327 Fixed
2021-03-09 14:44:42 +03:00

16 lines
290 B
Kotlin
Vendored

// FIR_IDENTICAL
import java.io.File
import kotlin.system.exitProcess
object Main {
private val KOTLIN_HOME: File
init {
val home = System.getProperty("kotlin.home")
if (home == null) {
exitProcess(1)
}
KOTLIN_HOME = File(home)
}
}