Add data modifier to a class quickfix #KT-18220 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
f08e9832a6
commit
1043284afe
@@ -0,0 +1,12 @@
|
||||
// "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>
|
||||
}
|
||||
Reference in New Issue
Block a user