Introduce Common readln() and readlnOrNull() top-level functions #KT-48456
This commit is contained in:
committed by
Space
parent
14b66872b5
commit
97eb28144f
@@ -104,3 +104,9 @@ public actual fun println(message: Any?) {
|
||||
public actual fun print(message: Any?) {
|
||||
output.print(message)
|
||||
}
|
||||
|
||||
@SinceKotlin("1.6")
|
||||
public actual fun readln(): String = throw UnsupportedOperationException("readln is not supported in Kotlin/JS")
|
||||
|
||||
@SinceKotlin("1.6")
|
||||
public actual fun readlnOrNull(): String? = throw UnsupportedOperationException("readlnOrNull is not supported in Kotlin/JS")
|
||||
Reference in New Issue
Block a user