51 lines
825 B
Plaintext
Vendored
51 lines
825 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Destructuring declaration initializer of type Some must have a 'component1()' function
|
|
|
|
package testing
|
|
|
|
import aaa.Some
|
|
|
|
fun testing() {
|
|
val (a) = <caret>Some()
|
|
}
|
|
//-----------------------
|
|
|
|
|
|
// FILE: second.kt
|
|
|
|
package aaa
|
|
|
|
public class Some
|
|
|
|
@Deprecated("Good")
|
|
@DeprecatedSinceKotlin(warningSince = "999.999")
|
|
operator fun Some.component1() = 1
|
|
//-----------------------
|
|
|
|
// FILE: other_second.kt
|
|
|
|
package other
|
|
|
|
import aaa.Some
|
|
|
|
operator fun Some.component1() = 1
|
|
//-----------------------
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// "Import" "true"
|
|
// ERROR: Destructuring declaration initializer of type Some must have a 'component1()' function
|
|
|
|
package testing
|
|
|
|
import aaa.Some
|
|
import aaa.component1
|
|
|
|
fun testing() {
|
|
val (a) = <caret>Some()
|
|
}
|
|
//-----------------------
|
|
|
|
|