24 lines
508 B
Kotlin
24 lines
508 B
Kotlin
//--- Test "eqeq" -------------------------------------------------------------//
|
|
|
|
fun check_eqeq(a: Any?) = a == null
|
|
|
|
fun null_check_eqeq1() : Boolean {
|
|
return check_eqeq(Any())
|
|
}
|
|
|
|
fun null_check_eqeq2() : Boolean {
|
|
return check_eqeq(null)
|
|
}
|
|
|
|
//--- Test "eqeqeq" -----------------------------------------------------------//
|
|
|
|
fun check_eqeqeq(a: Any?) = a === null
|
|
|
|
fun null_check_eqeqeq1() : Boolean {
|
|
return check_eqeqeq(Any())
|
|
}
|
|
|
|
fun null_check_eqeqeq2() : Boolean {
|
|
return check_eqeqeq(null)
|
|
}
|