Make LINE_SEPARATOR lazy property to not kick-in before system is setup.

This commit is contained in:
Ilya Ryzhenkov
2014-07-15 21:18:00 +04:00
committed by Evgeny Gerashchenko
parent 2b6fcc0b7c
commit e22ff87d81
@@ -1,7 +1,9 @@
package kotlin
import kotlin.properties.*
/** Line separator for current system. */
val LINE_SEPARATOR: String = System.getProperty("line.separator")!!
val LINE_SEPARATOR: String by Delegates.lazy { System.getProperty("line.separator")!! }
/** Appends line separator to Appendable. */
public fun Appendable.appendln(): Appendable = append(LINE_SEPARATOR)