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:
+2
@@ -0,0 +1,2 @@
|
||||
// IS_APPLICABLE: false
|
||||
sealed class C <caret>private constructor()
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
sealed class C {
|
||||
<caret>private constructor()
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// IS_APPLICABLE: false
|
||||
sealed class C <caret>private constructor()
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
sealed class C {
|
||||
<caret>private constructor()
|
||||
}
|
||||
Reference in New Issue
Block a user