File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/backend/sjs
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1677,7 +1677,7 @@ class JSCodeGen()(implicit ctx: Context) {
1677
1677
} else if (isJSBracketAccess(sym)) {
1678
1678
assert(noSpread && (argc == 1 || argc == 2 ),
1679
1679
s " @JSBracketAccess methods should have 1 or 2 non-varargs arguments " )
1680
- args match {
1680
+ ( args : @ unchecked) match {
1681
1681
case List (keyArg) =>
1682
1682
genSelectGet(requireNotSpread(keyArg))
1683
1683
case List (keyArg, valueArg) =>
@@ -2066,7 +2066,7 @@ class JSCodeGen()(implicit ctx: Context) {
2066
2066
toTypeRef(tpe) match {
2067
2067
case jstpe.ClassRef (cls) if ir.Definitions .PrimitiveClasses .contains(cls) =>
2068
2068
assert(cls.length == 1 )
2069
- ( cls.charAt(0 ) : @ switch ) match {
2069
+ cls.charAt(0 ) match {
2070
2070
case 'V' =>
2071
2071
expr
2072
2072
case primitiveCharCode =>
You can’t perform that action at this time.
0 commit comments