Files
kotlin-fork/idea/testData/quickfix/modifiers/operatorModifierComponent.kt.after
T
Ilya Kirillov bd38363077 FIR IDE: use IGNORE_FIR instead of FIR_COMPARISON in hl quick fix tests
To explicitly specify which test are failing
2021-04-01 18:24:17 +02:00

14 lines
242 B
Plaintext
Vendored

// "Add 'operator' modifier" "true"
// ERROR: 'operator' modifier is required on 'component2' in 'A'
class A {
operator fun component1(): Int = 0
fun component2(): Int = 1
}
fun foo() {
val (zero, one) = A()
}
/* IGNORE_FIR */