12 lines
344 B
Kotlin
Vendored
12 lines
344 B
Kotlin
Vendored
// IS_APPLICABLE: false
|
|
// ERROR: 'if' must have both main and 'else' branches if used as an expression
|
|
// ERROR: Expression 'if "test" is String' of type 'Unit' cannot be invoked as a function. The function invoke() is not found
|
|
|
|
fun <T> doSomething(a: T) {}
|
|
|
|
fun main() {
|
|
if <caret>"test" is String {
|
|
doSomething("Hello")
|
|
}
|
|
}
|