File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/backend/jvm Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package backend.jvm
4
4
import dotc .ast .Trees .Select
5
5
import dotc .ast .tpd ._
6
6
import dotc .core ._
7
- import Contexts .Context
7
+ import Contexts .{ Context , ctx }
8
8
import Names .TermName , StdNames ._
9
9
import Types .{JavaArrayType , UnspecifiedErrorType , Type }
10
10
import Symbols .{Symbol , NoSymbol }
@@ -49,7 +49,7 @@ class DottyPrimitives(ictx: Context) {
49
49
* @param tpe The type of the receiver object. It is used only for array
50
50
* operations
51
51
*/
52
- def getPrimitive (app : Apply , tpe : Type )(implicit ctx : Context ): Int = {
52
+ def getPrimitive (app : Apply , tpe : Type )(using Context ): Int = {
53
53
val fun = app.fun.symbol
54
54
val defn = ctx.definitions
55
55
val code = app.fun match {
@@ -130,7 +130,7 @@ class DottyPrimitives(ictx: Context) {
130
130
primitives(s) = code
131
131
}
132
132
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 = {
134
134
val alts = cls.info.member(method).alternatives.map(_.symbol)
135
135
if (alts.isEmpty)
136
136
ctx.error(s " Unknown primitive method $cls. $method" )
You can’t perform that action at this time.
0 commit comments