[FE] Make constructors of sealed classes protected instead of internal
This commit is contained in:
committed by
TeamCityServer
parent
e795c2c407
commit
f3a8fcaea6
@@ -5,6 +5,7 @@
|
||||
// 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 protected 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
|
||||
|
||||
Reference in New Issue
Block a user