diff options
author | Martin Odersky <odersky@gmail.com> | 2014-07-01 13:55:09 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-07-17 11:01:59 +0200 |
commit | 0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49 (patch) | |
tree | aea4813b958afc2e42e4058ff1b097f1052ac0d7 /src/dotty/tools/dotc/reporting/Reporter.scala | |
parent | a2a5a57911bc4046e78d88b28a0c7759f3b8c595 (diff) | |
download | dotty-0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49.tar.gz dotty-0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49.tar.bz2 dotty-0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49.zip |
Error method for implementation restrictions
Diffstat (limited to 'src/dotty/tools/dotc/reporting/Reporter.scala')
-rw-r--r-- | src/dotty/tools/dotc/reporting/Reporter.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/reporting/Reporter.scala b/src/dotty/tools/dotc/reporting/Reporter.scala index 82b0a1158..7f0c88bc5 100644 --- a/src/dotty/tools/dotc/reporting/Reporter.scala +++ b/src/dotty/tools/dotc/reporting/Reporter.scala @@ -93,6 +93,9 @@ trait Reporting { this: Context => reporter.report(new Error(msg, pos)) } + def restrictionError(msg: => String, pos: SourcePosition = NoSourcePosition): Unit = + error(s"Implementation restriction: $msg", pos) + def incompleteInputError(msg: String, pos: SourcePosition = NoSourcePosition)(implicit ctx: Context): Unit = reporter.incomplete(new Error(msg, pos))(ctx) |