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.
1 parent 4811889 commit e07da93Copy full SHA for e07da93
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) // Optimised to not create the closure
26
+ assert(false, s"illegal flagset combination: $this and $that")
27
FlagSet(tbits | ((this.bits | that.bits) & ~KINDFLAGS))
28
}
29
0 commit comments