Files
kotlin-fork/idea/testData/intentions/swapBinaryExpression/is.kt
T
2014-06-25 14:22:54 +04:00

11 lines
270 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: Expression 'if "test" is String' of type 'kotlin.Unit' cannot be invoked as a function. The function invoke() is not found
fun doSomething<T>(a: T) {}
fun main() {
if <caret>"test" is String {
doSomething("Hello")
}
}