diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Flags.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Flags.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Flags.scala b/src/dotty/tools/dotc/core/Flags.scala index ab17c7176..0678b79be 100644 --- a/src/dotty/tools/dotc/core/Flags.scala +++ b/src/dotty/tools/dotc/core/Flags.scala @@ -166,7 +166,7 @@ object Flags { /** The conjunction of all flags in given flag set */ def allOf(flagss: FlagSet*) = { - assert(flagss forall (_.numFlags == 1)) + assert(flagss forall (_.numFlags == 1), "Flags.allOf doesn't support flag " + flagss.find(_.numFlags != 1)) FlagConjunction(union(flagss: _*).bits) } |