aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/reporting
diff options
context:
space:
mode:
authorEnno Runne <enno.runne@baymarkets.com>2017-02-20 15:02:39 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-02-20 16:50:09 +0100
commit6b522cc16ee61b51c5b0c5ff4df3632c2d84e801 (patch)
tree1ac2e53a51bb60b8ab7bd7e554fa071f0252f7df /compiler/src/dotty/tools/dotc/reporting
parent4352a4a97817edfbd4e936258050c17bfff187c3 (diff)
downloaddotty-6b522cc16ee61b51c5b0c5ff4df3632c2d84e801.tar.gz
dotty-6b522cc16ee61b51c5b0c5ff4df3632c2d84e801.tar.bz2
dotty-6b522cc16ee61b51c5b0c5ff4df3632c2d84e801.zip
Use Message ID enum
Diffstat (limited to 'compiler/src/dotty/tools/dotc/reporting')
-rw-r--r--compiler/src/dotty/tools/dotc/reporting/diagnostic/ErrorMessageID.java3
-rw-r--r--compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala2
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/reporting/diagnostic/ErrorMessageID.java b/compiler/src/dotty/tools/dotc/reporting/diagnostic/ErrorMessageID.java
index 43930a56e..c74130b44 100644
--- a/compiler/src/dotty/tools/dotc/reporting/diagnostic/ErrorMessageID.java
+++ b/compiler/src/dotty/tools/dotc/reporting/diagnostic/ErrorMessageID.java
@@ -48,7 +48,8 @@ public enum ErrorMessageID {
OverridesNothingID,
OverridesNothingButNameExistsID,
ForwardReferenceExtendsOverDefinitionID,
- ExpectedTokenButFoundID;
+ ExpectedTokenButFoundID,
+ MixedLeftAndRightAssociativeOpsID;
public int errorNumber() {
return ordinal() - 2;
diff --git a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
index ed1c5642f..7fccebef9 100644
--- a/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
+++ b/compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1094,7 +1094,7 @@ object messages {
}
case class MixedLeftAndRightAssociativeOps(op1: Name, op2: Name, op2LeftAssoc: Boolean)(implicit ctx: Context)
- extends Message(41) {
+ extends Message(MixedLeftAndRightAssociativeOpsID) {
val kind = "Syntax"
val op1Asso = if (op2LeftAssoc) "which is right-associative" else "which is left-associative"
val op2Asso = if (op2LeftAssoc) "which is left-associative" else "which is right-associative"