From 54cc372e3f9a0b0c3e993bf5e2f75880a93fe353 Mon Sep 17 00:00:00 2001 From: Abel Nieto Date: Mon, 30 Jul 2018 18:52:22 +0200 Subject: [PATCH] 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. --- compiler/src/dotty/tools/dotc/core/Flags.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/Flags.scala b/compiler/src/dotty/tools/dotc/core/Flags.scala index 399685e67f96..f6f949cf6e32 100644 --- a/compiler/src/dotty/tools/dotc/core/Flags.scala +++ b/compiler/src/dotty/tools/dotc/core/Flags.scala @@ -9,13 +9,13 @@ object Flags { * The first two bits indicate whether a flagset applies to terms, * to types, or to both. Bits 2..63 are available for properties * and can be doubly used for terms and types. - * Combining two FlagSets with `|` will give a FlagSet - * that has the intersection of the applicability to terms/types - * of the two flag sets. It is checked that the intersection is not empty. */ case class FlagSet(val bits: Long) extends AnyVal { /** The union of this flag set and the given flag set + * Combining two FlagSets with `|` will give a FlagSet + * that has the intersection of the applicability to terms/types + * of the two flag sets. It is checked that the intersection is not empty. */ def | (that: FlagSet): FlagSet = if (bits == 0) that