mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
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.
13 lines
223 B
Kotlin
Vendored
13 lines
223 B
Kotlin
Vendored
// "Add 'operator' modifier" "true"
|
|
// ERROR: 'operator' modifier is required on 'component2' in 'A'
|
|
|
|
class A {
|
|
fun component1(): Int = 0
|
|
fun component2(): Int = 1
|
|
}
|
|
|
|
fun foo() {
|
|
val (<caret>zero, one) = A()
|
|
}
|
|
|