Skip to content

Commit c475cbf

Browse files
committed
Drop redundant asInstanceOf
1 parent 58c94f6 commit c475cbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ object Flags {
88
object opaques {
99

1010
/** A FlagSet represents a set of flags. Flags are encoded as follows:
11-
* The first two bits indicate whether a flagset applies to terms,
11+
* The first two bits indicate whether a flag set applies to terms,
1212
* to types, or to both. Bits 2..63 are available for properties
1313
* and can be doubly used for terms and types.
1414
*/
1515
opaque type FlagSet = Long
16-
def FlagSet(bits: Long): FlagSet = bits.asInstanceOf // !!!
16+
def FlagSet(bits: Long): FlagSet = bits
1717
def toBits(fs: FlagSet): Long = fs
1818
}
1919
type FlagSet = opaques.FlagSet

0 commit comments

Comments
 (0)