This repository was archived by the owner on Sep 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
src/reflect/scala/reflect/internal Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -234,13 +234,8 @@ class Flags extends ModifierFlags {
234
234
*/
235
235
final val AllFlags = - 1L
236
236
237
- /** These flags can be set when class or module symbol is first created.
238
- */
239
- final val TopLevelCreationFlags =
240
- MODULE | PACKAGE | FINAL | JAVA
241
-
242
237
// TODO - there's no call to slap four flags onto every package.
243
- final val PackageFlags = TopLevelCreationFlags
238
+ final val PackageFlags = MODULE | PACKAGE | FINAL | JAVA
244
239
245
240
// FINAL not included here due to possibility of object overriding.
246
241
// In fact, FINAL should not be attached regardless. We should be able
@@ -300,7 +295,7 @@ class Flags extends ModifierFlags {
300
295
final val ConstrFlags = JAVA
301
296
302
297
/** Module flags inherited by their module-class */
303
- final val ModuleToClassFlags = AccessFlags | TopLevelCreationFlags | CASE | SYNTHETIC
298
+ final val ModuleToClassFlags = AccessFlags | PackageFlags | CASE | SYNTHETIC
304
299
305
300
/** These flags are not pickled */
306
301
final val FlagsNotPickled = IS_ERROR | OVERLOADED | LIFTED | TRANS_FLAG | LOCKED | TRIEDCOOKING
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ trait Mirrors extends api.Mirrors {
273
273
// is very beneficial for a handful of bootstrap symbols to have
274
274
// first class identities
275
275
sealed trait WellKnownSymbol extends Symbol {
276
- this initFlags (TopLevelCreationFlags | STATIC )
276
+ this initFlags (PackageFlags | STATIC )
277
277
}
278
278
// Features common to RootClass and RootPackage, the roots of all
279
279
// type and term symbols respectively.
You can’t perform that action at this time.
0 commit comments