mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
14 lines
272 B
Kotlin
Vendored
14 lines
272 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
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
|