KT-46146 'protected' and 'private' only for sealed constructors

Prior to this commit we suggested two invalid intentions for sealed
class constructors: change visibility to 'public' and 'internal'.

^KT-46146 Fixed
This commit is contained in:
Andrei Klunnyi
2021-05-05 14:49:16 +03:00
committed by Space
parent 686368749a
commit e56a3b3c30
8 changed files with 53 additions and 8 deletions
@@ -0,0 +1,2 @@
// IS_APPLICABLE: false
sealed class C <caret>private constructor()
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
sealed class C {
<caret>private constructor()
}
@@ -0,0 +1,2 @@
// IS_APPLICABLE: false
sealed class C <caret>private constructor()
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
sealed class C {
<caret>private constructor()
}