2ed5a5e368
#KT-19029 Fixed Target versions 1.1.5 #KT-18818 Fixed Target versions 1.1.5
14 lines
262 B
Kotlin
Vendored
14 lines
262 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun findUserId(username: String): Long? = null
|
|
|
|
fun main(args: Array<String>) {
|
|
val userId = findUserId("abcd")
|
|
|
|
when (userId) {
|
|
null -> println("User not found")
|
|
else -> println("User ID: $userId")
|
|
}
|
|
}
|
|
|
|
// 0 areEqual |