Skip to content

Commit 2f7f6ce

Browse files
committed
Drop more ctx bindings
1 parent 5eb9000 commit 2f7f6ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package backend.jvm
44
import dotc.ast.Trees.Select
55
import dotc.ast.tpd._
66
import dotc.core._
7-
import Contexts.Context
7+
import Contexts.{Context, ctx}
88
import Names.TermName, StdNames._
99
import Types.{JavaArrayType, UnspecifiedErrorType, Type}
1010
import Symbols.{Symbol, NoSymbol}
@@ -49,7 +49,7 @@ class DottyPrimitives(ictx: Context) {
4949
* @param tpe The type of the receiver object. It is used only for array
5050
* operations
5151
*/
52-
def getPrimitive(app: Apply, tpe: Type)(implicit ctx: Context): Int = {
52+
def getPrimitive(app: Apply, tpe: Type)(using Context): Int = {
5353
val fun = app.fun.symbol
5454
val defn = ctx.definitions
5555
val code = app.fun match {
@@ -130,7 +130,7 @@ class DottyPrimitives(ictx: Context) {
130130
primitives(s) = code
131131
}
132132

133-
def addPrimitives(cls: Symbol, method: TermName, code: Int)(implicit ctx: Context): Unit = {
133+
def addPrimitives(cls: Symbol, method: TermName, code: Int)(using Context): Unit = {
134134
val alts = cls.info.member(method).alternatives.map(_.symbol)
135135
if (alts.isEmpty)
136136
ctx.error(s"Unknown primitive method $cls.$method")

0 commit comments

Comments
 (0)