Reproduce KT-45327: false positive MUST_INITIALIZED_OR_BE_ABSTRACT after conditional exitProcess
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
628d75c7cd
commit
d8fb54c6bd
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user