aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-07-01 13:55:09 +0200
committerMartin Odersky <odersky@gmail.com>2014-07-17 11:01:59 +0200
commit0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49 (patch)
treeaea4813b958afc2e42e4058ff1b097f1052ac0d7
parenta2a5a57911bc4046e78d88b28a0c7759f3b8c595 (diff)
downloaddotty-0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49.tar.gz
dotty-0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49.tar.bz2
dotty-0cf64e8110717ec1c1008a7cdfb5c173a3f0bc49.zip
Error method for implementation restrictions
-rw-r--r--src/dotty/tools/dotc/reporting/Reporter.scala3
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)