Skip to content

Commit 54cc372

Browse files
committed
Move comment in FlagSet definition
The comment about how the flag union "|" operation is actually (somewhat of) an intersection belongs with the method definition, as opposed to the class definition.
1 parent 82f954e commit 54cc372

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ object Flags {
99
* The first two bits indicate whether a flagset applies to terms,
1010
* to types, or to both. Bits 2..63 are available for properties
1111
* and can be doubly used for terms and types.
12-
* Combining two FlagSets with `|` will give a FlagSet
13-
* that has the intersection of the applicability to terms/types
14-
* of the two flag sets. It is checked that the intersection is not empty.
1512
*/
1613
case class FlagSet(val bits: Long) extends AnyVal {
1714

1815
/** The union of this flag set and the given flag set
16+
* Combining two FlagSets with `|` will give a FlagSet
17+
* that has the intersection of the applicability to terms/types
18+
* of the two flag sets. It is checked that the intersection is not empty.
1919
*/
2020
def | (that: FlagSet): FlagSet =
2121
if (bits == 0) that

0 commit comments

Comments
 (0)