File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public enum ErrorMessageID {
50
50
ExpectedTokenButFoundID ,
51
51
MixedLeftAndRightAssociativeOpsID ,
52
52
CantInstantiateAbstractClassOrTraitID ,
53
- AnnotatedPrimaryConstructorRequiresModifierOrThisID ,
53
+ DUMMY_AVAILABLE_1 ,
54
54
OverloadedOrRecursiveMethodNeedsResultTypeID ,
55
55
RecursiveValueNeedsResultTypeID ,
56
56
CyclicReferenceInvolvingID ,
Original file line number Diff line number Diff line change @@ -1135,21 +1135,6 @@ object messages {
1135
1135
| """ .stripMargin
1136
1136
}
1137
1137
1138
- case class AnnotatedPrimaryConstructorRequiresModifierOrThis (cls : Name )(implicit ctx : Context )
1139
- extends Message (AnnotatedPrimaryConstructorRequiresModifierOrThisID ) {
1140
- val kind = " Syntax"
1141
- val msg = hl """ ${" private" }, ${" protected" }, or ${" this" } expected for annotated primary constructor """
1142
- val explanation =
1143
- hl """ |When using annotations with a primary constructor of a class,
1144
- |the annotation must be followed by an access modifier
1145
- |( ${" private" } or ${" protected" }) or ${" this" }.
1146
- |
1147
- |For example:
1148
- | ${" class Sample @deprecated this(param: Parameter) { ..." }
1149
- | ^^^^
1150
- | """ .stripMargin
1151
- }
1152
-
1153
1138
case class OverloadedOrRecursiveMethodNeedsResultType (tree : Names .TermName )(implicit ctx : Context )
1154
1139
extends Message (OverloadedOrRecursiveMethodNeedsResultTypeID ) {
1155
1140
val kind = " Syntax"
@@ -1277,7 +1262,7 @@ object messages {
1277
1262
| $noParameters""" .stripMargin
1278
1263
1279
1264
}
1280
-
1265
+
1281
1266
case class AmbiguousOverload (tree : tpd.Tree , alts : List [SingleDenotation ], pt : Type )(
1282
1267
err : typer.ErrorReporting .Errors )(
1283
1268
implicit ctx : Context )
@@ -1296,7 +1281,7 @@ object messages {
1296
1281
|- adding a type ascription as in ` ${" instance.myMethod: String => Int" }`
1297
1282
| """
1298
1283
}
1299
-
1284
+
1300
1285
case class ReassignmentToVal (name : Names .Name )(implicit ctx : Context )
1301
1286
extends Message (ReassignmentToValID ) {
1302
1287
val kind = " Reference"
You can’t perform that action at this time.
0 commit comments