[FE] Make constructors of sealed classes protected instead of internal

This commit is contained in:
Dmitriy Novozhilov
2021-02-11 10:41:07 +03:00
committed by TeamCityServer
parent e795c2c407
commit f3a8fcaea6
80 changed files with 167 additions and 97 deletions
+1
View File
@@ -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