mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
19 lines
302 B
Kotlin
19 lines
302 B
Kotlin
fun fn(x:Any?, y: Any?) {
|
|
if (x == null && y == null) {
|
|
throw Exception()
|
|
}
|
|
|
|
if (x != null) {
|
|
println("x not null")
|
|
} else if (y != null) {
|
|
println("y not null")
|
|
}
|
|
}
|
|
|
|
fun fn0(o: Any?) {
|
|
if (o != null) {
|
|
o?.toString()
|
|
o.toString()
|
|
}
|
|
}
|