We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c94f6 commit c475cbfCopy full SHA for c475cbf
compiler/src/dotty/tools/dotc/core/Flags.scala
@@ -8,12 +8,12 @@ object Flags {
8
object opaques {
9
10
/** A FlagSet represents a set of flags. Flags are encoded as follows:
11
- * The first two bits indicate whether a flagset applies to terms,
+ * The first two bits indicate whether a flag set applies to terms,
12
* to types, or to both. Bits 2..63 are available for properties
13
* and can be doubly used for terms and types.
14
*/
15
opaque type FlagSet = Long
16
- def FlagSet(bits: Long): FlagSet = bits.asInstanceOf // !!!
+ def FlagSet(bits: Long): FlagSet = bits
17
def toBits(fs: FlagSet): Long = fs
18
}
19
type FlagSet = opaques.FlagSet
0 commit comments