Skip to content

Commit b526579

Browse files
authored
Merge pull request #9609 from dotty-staging/optimize-FlagSet
Optimize toBits in FlagSet
2 parents 1431be2 + 0700a47 commit b526579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Flags.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object Flags {
2424

2525
extension (x: FlagSet) {
2626

27-
def bits: Long = opaques.toBits(x)
27+
inline def bits: Long = opaques.toBits(x)
2828

2929
/** The union of the given flag sets.
3030
* Combining two FlagSets with `|` will give a FlagSet

0 commit comments

Comments
 (0)