[Test] Update testdata of quickfix tests related to sealed classes
This commit is contained in:
+1
-2
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user