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.
2 parents a116bd0 + 1e88c3a commit 6e917f7Copy full SHA for 6e917f7
compiler/src/dotty/tools/dotc/core/Flags.scala
@@ -22,7 +22,8 @@ object Flags {
22
else if (that.bits == 0) this
23
else {
24
val tbits = bits & that.bits & KINDFLAGS
25
- assert(tbits != 0, s"illegal flagset combination: $this and $that")
+ if (tbits == 0)
26
+ assert(false, s"illegal flagset combination: $this and $that")
27
FlagSet(tbits | ((this.bits | that.bits) & ~KINDFLAGS))
28
}
29
0 commit comments