mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
15 lines
705 B
Kotlin
15 lines
705 B
Kotlin
// "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'
|
|
// ACTION: Enable a trailing comma by default in the formatter
|
|
// ACTION: Put arguments on separate lines
|
|
// ERROR: Cannot create an instance of an abstract class
|
|
// ERROR: Destructuring declaration initializer of type Foo must have a 'component1()' function
|
|
// ERROR: Destructuring declaration initializer of type Foo must have a 'component2()' function
|
|
abstract class Foo(val bar: String, val baz: Int)
|
|
|
|
fun test() {
|
|
var (bar, baz) = Foo("A", 1)<caret>
|
|
} |