@@ -47,7 +47,7 @@ object Checking {
47
47
* 1. the full inferred type is a TypeTree node
48
48
* 2. the applied type causing the error, if different from (1)
49
49
*/
50
- private def showInferred (msg : Message , app : Type , tpt : Tree )(using ctx : Context ): Message =
50
+ private def showInferred (msg : Message , app : Type , tpt : Tree )(using Context ): Message =
51
51
if tpt.isInstanceOf [TypeTree ] then
52
52
def subPart = if app eq tpt.tpe then " " else i " subpart $app of "
53
53
msg.append(i " in $subPart inferred type ${tpt}" )
@@ -91,7 +91,7 @@ object Checking {
91
91
* @param tpt If `tree` is synthesized from a type in a TypeTree,
92
92
* the original TypeTree, or EmptyTree otherwise.
93
93
*/
94
- def checkAppliedType (tree : AppliedTypeTree , tpt : Tree = EmptyTree )(using ctx : Context ): Unit = {
94
+ def checkAppliedType (tree : AppliedTypeTree , tpt : Tree = EmptyTree )(using Context ): Unit = {
95
95
val AppliedTypeTree (tycon, args) = tree
96
96
// If `args` is a list of named arguments, return corresponding type parameters,
97
97
// otherwise return type parameters unchanged
@@ -629,7 +629,7 @@ object Checking {
629
629
}
630
630
631
631
/** Check that an enum case extends its enum class */
632
- def checkEnumParentOK (cls : Symbol )(using ctx : Context ): Unit =
632
+ def checkEnumParentOK (cls : Symbol )(using Context ): Unit =
633
633
val enumCase =
634
634
if cls.isAllOf(EnumCase ) then cls
635
635
else if cls.isAnonymousClass && cls.owner.isAllOf(EnumCase ) then cls.owner
@@ -1151,7 +1151,7 @@ trait Checking {
1151
1151
}
1152
1152
1153
1153
/** check that annotation `annot` is applicable to symbol `sym` */
1154
- def checkAnnotApplicable (annot : Tree , sym : Symbol )(using ctx : Context ): Boolean =
1154
+ def checkAnnotApplicable (annot : Tree , sym : Symbol )(using Context ): Boolean =
1155
1155
! ctx.reporter.reportsErrorsFor { implicit ctx =>
1156
1156
val annotCls = Annotations .annotClass(annot)
1157
1157
val pos = annot.sourcePos
@@ -1185,7 +1185,7 @@ trait ReChecking extends Checking {
1185
1185
override def checkEnum (cdef : untpd.TypeDef , cls : Symbol , firstParent : Symbol )(implicit ctx : Context ): Unit = ()
1186
1186
override def checkRefsLegal (tree : tpd.Tree , badOwner : Symbol , allowed : (Name , Symbol ) => Boolean , where : String )(implicit ctx : Context ): Unit = ()
1187
1187
override def checkEnumCaseRefsLegal (cdef : TypeDef , enumCtx : Context )(implicit ctx : Context ): Unit = ()
1188
- override def checkAnnotApplicable (annot : Tree , sym : Symbol )(using ctx : Context ): Boolean = true
1188
+ override def checkAnnotApplicable (annot : Tree , sym : Symbol )(using Context ): Boolean = true
1189
1189
}
1190
1190
1191
1191
trait NoChecking extends ReChecking {
0 commit comments