[Test] Update testdata of quickfix tests related to sealed classes

This commit is contained in:
Dmitriy Novozhilov
2021-01-14 08:54:05 +03:00
parent 7632c11745
commit 16e0c0b820
8 changed files with 18 additions and 20 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
// ACTION: Create member function 'Foo.component2'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Put arguments on separate lines
// ERROR: Cannot access '<init>': it is private in 'Foo'
// ERROR: Destructuring declaration initializer of type Foo must have a 'component1()' function
// ERROR: Destructuring declaration initializer of type Foo must have a 'component2()' function
// ERROR: Sealed types cannot be instantiated
@@ -13,4 +12,4 @@ sealed class Foo(val bar: String, val baz: Int)
fun test() {
var (bar, baz) = Foo("A", 1)<caret>
}
}