@@ -2090,7 +2090,7 @@ import ast.tpd
2090
2090
|This mechanism is used for instance in pattern ${hl(" case List(x1, ..., xn)" )}""" .stripMargin
2091
2091
}
2092
2092
2093
- class MemberWithSameNameAsStatic ()(using ctx : Context )
2093
+ class MemberWithSameNameAsStatic ()(using Context )
2094
2094
extends SyntaxMsg (MemberWithSameNameAsStaticID ) {
2095
2095
def msg = em " Companion classes cannot define members with same name as a ${hl(" @static" )} member "
2096
2096
def explain = " "
@@ -2105,40 +2105,40 @@ import ast.tpd
2105
2105
|It can be removed without changing the semantics of the program. This may indicate an error. """ .stripMargin
2106
2106
}
2107
2107
2108
- class TraitCompanionWithMutableStatic ()(using ctx : Context )
2108
+ class TraitCompanionWithMutableStatic ()(using Context )
2109
2109
extends SyntaxMsg (TraitCompanionWithMutableStaticID ) {
2110
2110
def msg = em " Companion of traits cannot define mutable @static fields "
2111
2111
def explain = " "
2112
2112
}
2113
2113
2114
- class LazyStaticField ()(using ctx : Context )
2114
+ class LazyStaticField ()(using Context )
2115
2115
extends SyntaxMsg (LazyStaticFieldID ) {
2116
2116
def msg = em " Lazy @static fields are not supported "
2117
2117
def explain = " "
2118
2118
}
2119
2119
2120
- class StaticOverridingNonStaticMembers ()(using ctx : Context )
2120
+ class StaticOverridingNonStaticMembers ()(using Context )
2121
2121
extends SyntaxMsg (StaticOverridingNonStaticMembersID ) {
2122
2122
def msg = em " ${hl(" @static" )} members cannot override or implement non-static ones "
2123
2123
def explain = " "
2124
2124
}
2125
2125
2126
- class OverloadInRefinement (rsym : Symbol )(using ctx : Context )
2126
+ class OverloadInRefinement (rsym : Symbol )(using Context )
2127
2127
extends DeclarationMsg (OverloadInRefinementID ) {
2128
2128
def msg = " Refinements cannot introduce overloaded definitions"
2129
2129
def explain =
2130
2130
em """ The refinement ` $rsym` introduces an overloaded definition.
2131
2131
|Refinements cannot contain overloaded definitions. """ .stripMargin
2132
2132
}
2133
2133
2134
- class NoMatchingOverload (val alternatives : List [SingleDenotation ], pt : Type )(using ctx : Context )
2134
+ class NoMatchingOverload (val alternatives : List [SingleDenotation ], pt : Type )(using Context )
2135
2135
extends TypeMismatchMsg (NoMatchingOverloadID ) {
2136
2136
def msg =
2137
2137
em """ None of the ${err.overloadedAltsStr(alternatives)}
2138
2138
|match ${err.expectedTypeStr(pt)}"""
2139
2139
def explain = " "
2140
2140
}
2141
- class StableIdentPattern (tree : untpd.Tree , pt : Type )(using ctx : Context )
2141
+ class StableIdentPattern (tree : untpd.Tree , pt : Type )(using Context )
2142
2142
extends TypeMsg (StableIdentPatternID ) {
2143
2143
def msg =
2144
2144
em """ Stable identifier required, but $tree found """
@@ -2147,7 +2147,7 @@ import ast.tpd
2147
2147
2148
2148
class IllegalSuperAccessor (base : Symbol , memberName : Name ,
2149
2149
acc : Symbol , accTp : Type ,
2150
- other : Symbol , otherTp : Type )(using ctx : Context ) extends DeclarationMsg (IllegalSuperAccessorID ) {
2150
+ other : Symbol , otherTp : Type )(using Context ) extends DeclarationMsg (IllegalSuperAccessorID ) {
2151
2151
def msg = {
2152
2152
// The mixin containing a super-call that requires a super-accessor
2153
2153
val accMixin = acc.owner
@@ -2200,7 +2200,7 @@ import ast.tpd
2200
2200
def explain = " "
2201
2201
}
2202
2202
2203
- class TraitParameterUsedAsParentPrefix (cls : Symbol )(using ctx : Context )
2203
+ class TraitParameterUsedAsParentPrefix (cls : Symbol )(using Context )
2204
2204
extends DeclarationMsg (TraitParameterUsedAsParentPrefixID ) {
2205
2205
def msg =
2206
2206
s " ${cls.show} cannot extend from a parent that is derived via its own parameters "
@@ -2215,7 +2215,7 @@ import ast.tpd
2215
2215
| """ .stripMargin
2216
2216
}
2217
2217
2218
- class UnknownNamedEnclosingClassOrObject (name : TypeName )(using ctx : Context )
2218
+ class UnknownNamedEnclosingClassOrObject (name : TypeName )(using Context )
2219
2219
extends ReferenceMsg (UnknownNamedEnclosingClassOrObjectID ) {
2220
2220
def msg =
2221
2221
em """ no enclosing class or object is named ' ${hl(name.show)}' """
@@ -2228,7 +2228,7 @@ import ast.tpd
2228
2228
""" .stripMargin
2229
2229
}
2230
2230
2231
- class IllegalCyclicTypeReference (sym : Symbol , where : String , lastChecked : Type )(using ctx : Context )
2231
+ class IllegalCyclicTypeReference (sym : Symbol , where : String , lastChecked : Type )(using Context )
2232
2232
extends CyclicMsg (IllegalCyclicTypeReferenceID ) {
2233
2233
def msg =
2234
2234
val lastCheckedStr =
@@ -2238,7 +2238,7 @@ import ast.tpd
2238
2238
def explain = " "
2239
2239
}
2240
2240
2241
- class ErasedTypesCanOnlyBeFunctionTypes ()(using ctx : Context )
2241
+ class ErasedTypesCanOnlyBeFunctionTypes ()(using Context )
2242
2242
extends SyntaxMsg (ErasedTypesCanOnlyBeFunctionTypesID ) {
2243
2243
def msg = " Types with erased keyword can only be function types `(erased ...) => ...`"
2244
2244
def explain = " "
0 commit comments