From 18cf5d280e3f63213fd6bddbe8e1ed5b5d40b595 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 3 Mar 2014 17:23:15 +0100 Subject: More informative asserts. --- src/dotty/tools/dotc/core/Flags.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/Flags.scala') 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) } -- cgit v1.2.3