Files
Vladimir Dolzhenko 89c42862f8 [kotlin] Fix test data for irrelevant show return expression hints intention
#KTIJ-214

GitOrigin-RevId: 7ccfd925801d0de45116088840878da3c6d77591
2022-05-18 03:16:41 +00:00

15 lines
705 B
Kotlin

// "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: Enable a trailing comma by default in the formatter
// 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>
}
}