File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core/unpickleScala2 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,10 @@ object PickleBuffer {
241
241
val termMap, typeMap = new Array [Long ](64 )
242
242
for (idx <- 0 until ScalaFlagEnd )
243
243
corr get (1L << idx) match {
244
- case Some ((termFlag : FlagSet , typeFlag : FlagSet )) =>
244
+ case Some ((termFlag : FlagSet @ unchecked , typeFlag : FlagSet @ unchecked )) =>
245
245
termMap(idx) |= termFlag.bits
246
246
typeMap(idx) |= typeFlag.bits
247
- case Some (commonFlag : FlagSet ) =>
247
+ case Some (commonFlag : FlagSet @ unchecked ) =>
248
248
termMap(idx) |= commonFlag.toTermFlags.bits
249
249
typeMap(idx) |= commonFlag.toTypeFlags.bits
250
250
case _ =>
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ object Tuple {
216
216
/** Convert an immutable array into a tuple of unknown arity and types */
217
217
def fromIArray [T ](xs : IArray [T ]): Tuple = {
218
218
val xs2 : IArray [Object ] = xs match {
219
- case xs : IArray [Object ] => xs
219
+ case xs : IArray [Object ] @ unchecked => xs
220
220
case xs =>
221
221
// TODO support IArray.map
222
222
xs.asInstanceOf [Array [T ]].map(_.asInstanceOf [Object ]).asInstanceOf [IArray [Object ]]
You can’t perform that action at this time.
0 commit comments