Add data modifier to a class quickfix #KT-18220 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
f08e9832a6
commit
1043284afe
+14
@@ -0,0 +1,14 @@
|
||||
// "Make 'Foo' data class" "false"
|
||||
// ACTION: Create extension function 'Test.Foo.component1'
|
||||
// ACTION: Create extension function 'Test.Foo.component2'
|
||||
// ACTION: Create member function 'Test.Foo.component1'
|
||||
// ACTION: Create member function 'Test.Foo.component2'
|
||||
// ACTION: Put arguments on separate lines
|
||||
// ERROR: Destructuring declaration initializer of type Test.Foo must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type Test.Foo must have a 'component2()' function
|
||||
class Test {
|
||||
inner class Foo(val bar: String, val baz: Int)
|
||||
fun test() {
|
||||
var (bar, baz) = Foo("A", 1)<caret>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user