diff options
author | Enno Runne <enno.runne@baymarkets.com> | 2017-02-10 20:48:09 +0100 |
---|---|---|
committer | Enno Runne <enno.runne@baymarkets.com> | 2017-02-10 20:48:09 +0100 |
commit | daf21a77387ebfeeed40c4c4f985b16bcd70afaa (patch) | |
tree | a4ba08048684844796b6be0d5661a0194d0a5081 /compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala | |
parent | b5a9c8c4d1f832f2cc024f9cfe855d6e57bd35f9 (diff) | |
download | dotty-daf21a77387ebfeeed40c4c4f985b16bcd70afaa.tar.gz dotty-daf21a77387ebfeeed40c4c4f985b16bcd70afaa.tar.bz2 dotty-daf21a77387ebfeeed40c4c4f985b16bcd70afaa.zip |
Support expecting compiler errors from all phases
Diffstat (limited to 'compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala')
-rw-r--r-- | compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala b/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala index 67a09b9bf..57d66c60b 100644 --- a/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala +++ b/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTest.scala @@ -57,8 +57,8 @@ trait ErrorMessagesTest extends DottyTest { } } - def checkMessages(source: String): Report = { - checkCompile("frontend", source) { (_,ictx) => () } + def checkMessagesAfter(checkAfterPhase: String)(source: String): Report = { + checkCompile(checkAfterPhase, source) { (_,ictx) => () } val rep = ctx.reporter.asInstanceOf[CapturingReporter].toReport ctx = freshReporter(ctx) rep |