diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-20 09:46:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 09:46:16 +0100 |
commit | 8e2c27154d72bdbe92d7bea9a607b90bf1b52c1c (patch) | |
tree | 5206b8ae189655c0188a71c272181675fb399197 /compiler/test | |
parent | f3f1c4623b3815f1385317190bf72baabd98fdff (diff) | |
parent | eff2e07c322144c2886e7598d534d73f67906570 (diff) | |
download | dotty-8e2c27154d72bdbe92d7bea9a607b90bf1b52c1c.tar.gz dotty-8e2c27154d72bdbe92d7bea9a607b90bf1b52c1c.tar.bz2 dotty-8e2c27154d72bdbe92d7bea9a607b90bf1b52c1c.zip |
Merge pull request #1986 from dotty-staging/error-messages-ids
Use enum for error messages IDs.
Diffstat (limited to 'compiler/test')
-rw-r--r-- | compiler/test/dotty/tools/dotc/reporting/TestMessageLaziness.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/test/dotty/tools/dotc/reporting/TestMessageLaziness.scala b/compiler/test/dotty/tools/dotc/reporting/TestMessageLaziness.scala index bf727d51a..858660075 100644 --- a/compiler/test/dotty/tools/dotc/reporting/TestMessageLaziness.scala +++ b/compiler/test/dotty/tools/dotc/reporting/TestMessageLaziness.scala @@ -4,10 +4,8 @@ package reporting import org.junit.Assert._ import org.junit.Test - import core.Contexts._ - -import diagnostic.{ Message, MessageContainer, ExtendMessage } +import diagnostic.{ErrorMessageID, ExtendMessage, Message, MessageContainer} class TestMessageLaziness extends DottyTest { ctx = ctx.fresh.setReporter(new NonchalantReporter) @@ -19,7 +17,7 @@ class TestMessageLaziness extends DottyTest { override def report(m: MessageContainer)(implicit ctx: Context) = () } - case class LazyError() extends Message(1000) { + case class LazyError() extends Message(ErrorMessageID.LazyErrorId) { throw new Error("Didn't stay lazy.") val kind = "Test" |