mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
All bytecode text tests are run with stdlib in the classpath and only for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND, IGNORE_BACKEND are not needed
13 lines
246 B
Kotlin
Vendored
13 lines
246 B
Kotlin
Vendored
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
|