8 lines
222 B
Plaintext
8 lines
222 B
Plaintext
// ERROR: Expected condition of type kotlin.Boolean
|
|
// ERROR: Expected condition of type kotlin.Boolean
|
|
|
|
fun test(n: Int): String {
|
|
return if (_ is String) "String"
|
|
else if (_ in 1..10) "1..10"
|
|
else "unknown"
|
|
} |