// FILE: first.before.kt // "class org.jetbrains.kotlin.idea.quickfix.ImportFix" "false" // ERROR: Destructuring declaration initializer of type Some must have a 'component1()' function // ACTION: Create extension function 'Some.component1' // ACTION: Create member function 'Some.component1' // ACTION: Enable a trailing comma by default in the formatter // ACTION: Introduce import alias package testing import some.Some import some.component2 fun testing() { val (a, b) = Some() } //----------------------- // FILE: second.kt package some public class Some fun Some.component1() = 1 operator fun Some.component2() = 3