aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-11-17 17:17:38 +0100
committerGitHub <noreply@github.com>2016-11-17 17:17:38 +0100
commitdd0db48342b3ccc773373870f36348de846c66e4 (patch)
treef570ca1d762dc7d04ad61d808ae7bd5ca19454c9 /src/dotty/tools/dotc/reporting
parent156a9d978c9dab8e63ce1677a8743487057533ba (diff)
parent040379e2d5a77722563d73723044e065f2c1632b (diff)
downloaddotty-dd0db48342b3ccc773373870f36348de846c66e4.tar.gz
dotty-dd0db48342b3ccc773373870f36348de846c66e4.tar.bz2
dotty-dd0db48342b3ccc773373870f36348de846c66e4.zip
Merge pull request #1722 from dotty-staging/topic/fix#1708
Fix #1708: duplicate symbols in package
Diffstat (limited to 'src/dotty/tools/dotc/reporting')
-rw-r--r--src/dotty/tools/dotc/reporting/diagnostic/messages.scala10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
index 446c0e0c7..489165e56 100644
--- a/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
+++ b/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -790,7 +790,8 @@ object messages {
val explanation = ""
}
- case class SeqWildcardPatternPos()(implicit ctx: Context) extends Message(31) {
+ case class SeqWildcardPatternPos()(implicit ctx: Context)
+ extends Message(31) {
val kind = "Syntax"
val msg = "`_*' can be used only for last argument"
val explanation = {
@@ -891,4 +892,11 @@ object messages {
|"""
}
}
+
+ case class PkgDuplicateSymbol(existing: Symbol)(implicit ctx: Context)
+ extends Message(33) {
+ val kind = "Duplicate Symbol"
+ val msg = hl"trying to define package with same name as `$existing`"
+ val explanation = ""
+ }
}