Reproduce KT-45327: false positive MUST_INITIALIZED_OR_BE_ABSTRACT after conditional exitProcess

This commit is contained in:
Jinseong Jeon
2021-03-05 23:21:59 -08:00
committed by Dmitriy Novozhilov
parent 628d75c7cd
commit d8fb54c6bd
5 changed files with 49 additions and 0 deletions
@@ -0,0 +1,14 @@
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)
}
}