Skip to content

Commit 531148f

Browse files
committed
Adapt ClassTypeParamCreationFlags to new scheme
Re-fixes #938
1 parent 23a16fe commit 531148f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/src/dotty/tools/dotc/core/Flags.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
package dotty.tools.dotc.core
1+
package dotty.tools.dotc
2+
package core
23

34
import language.implicitConversions
45

@@ -495,7 +496,8 @@ object Flags {
495496
final val SelfSymFlags = Private | Local | Deferred
496497

497498
/** The flags of a class type parameter */
498-
final def ClassTypeParamCreationFlags = TypeParam | Deferred | Protected | Local
499+
final val ClassTypeParamCreationFlags =
500+
TypeParam | Deferred | (if (config.Config.newScheme) Private else Protected) | Local
499501

500502
/** Flags that can apply to both a module val and a module class, except those that
501503
* are added at creation anyway

0 commit comments

Comments
 (0)