55 lines
1.1 KiB
Plaintext
Vendored
55 lines
1.1 KiB
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Destructuring declaration initializer of type Some must have a 'component1()' function
|
|
// ERROR: Destructuring declaration initializer of type Some must have a 'component2()' function
|
|
|
|
package testing
|
|
|
|
import aaa.Some
|
|
|
|
fun testing() {
|
|
val (a, b) = <caret>Some()
|
|
}
|
|
//-----------------------
|
|
|
|
|
|
// FILE: second.kt
|
|
|
|
package aaa
|
|
|
|
public class Some
|
|
|
|
@Deprecated("Use componenents from other")
|
|
operator fun Some.component1() = 1
|
|
operator fun Some.component2() = 3
|
|
//-----------------------
|
|
|
|
// FILE: other_second.kt
|
|
|
|
package other
|
|
|
|
import aaa.Some
|
|
|
|
operator fun Some.component1() = 1
|
|
operator fun Some.component2() = 3
|
|
//-----------------------
|
|
|
|
|
|
// FILE: first.after.kt
|
|
// "Import" "true"
|
|
// ERROR: Destructuring declaration initializer of type Some must have a 'component1()' function
|
|
// ERROR: Destructuring declaration initializer of type Some must have a 'component2()' function
|
|
|
|
package testing
|
|
|
|
import aaa.Some
|
|
import other.component1
|
|
import other.component2
|
|
|
|
fun testing() {
|
|
val (a, b) = <caret>Some()
|
|
}
|
|
//-----------------------
|
|
|
|
|