8316953259
For diagnostics without any parameters, the given text is simply rendered as a String, so no symbols should be escaped. For diagnostics with parameters, the format in java.text.MessageFormat is used, so one single quote is erased and two single quotes become one single quote in the rendered text.
12 lines
346 B
Kotlin
Vendored
12 lines
346 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")
|
|
}
|
|
}
|