mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
12 lines
498 B
Kotlin
Vendored
12 lines
498 B
Kotlin
Vendored
// "Make 'Foo' data class" "false"
|
|
// ACTION: Create extension function 'Foo.component1'
|
|
// ACTION: Create extension function 'Foo.component2'
|
|
// ACTION: Create member function 'Foo.component1'
|
|
// ACTION: Create member function 'Foo.component2'
|
|
// ERROR: Destructuring declaration initializer of type Foo must have a 'component1()' function
|
|
// ERROR: Destructuring declaration initializer of type Foo must have a 'component2()' function
|
|
class Foo()
|
|
|
|
fun test() {
|
|
var (bar, baz) = Foo()<caret>
|
|
} |