Skip to content

Commit 46180f1

Browse files
committed
fix
1 parent 3bf6645 commit 46180f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/backend/sjs/JSCodeGen.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ class JSCodeGen()(implicit ctx: Context) {
16771677
} else if (isJSBracketAccess(sym)) {
16781678
assert(noSpread && (argc == 1 || argc == 2),
16791679
s"@JSBracketAccess methods should have 1 or 2 non-varargs arguments")
1680-
args match {
1680+
(args: @unchecked) match {
16811681
case List(keyArg) =>
16821682
genSelectGet(requireNotSpread(keyArg))
16831683
case List(keyArg, valueArg) =>
@@ -2066,7 +2066,7 @@ class JSCodeGen()(implicit ctx: Context) {
20662066
toTypeRef(tpe) match {
20672067
case jstpe.ClassRef(cls) if ir.Definitions.PrimitiveClasses.contains(cls) =>
20682068
assert(cls.length == 1)
2069-
(cls.charAt(0): @switch) match {
2069+
cls.charAt(0) match {
20702070
case 'V' =>
20712071
expr
20722072
case primitiveCharCode =>

0 commit comments

Comments
 (0)