diff options
author | odersky <odersky@gmail.com> | 2016-11-17 17:17:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 17:17:38 +0100 |
commit | dd0db48342b3ccc773373870f36348de846c66e4 (patch) | |
tree | f570ca1d762dc7d04ad61d808ae7bd5ca19454c9 /tests | |
parent | 156a9d978c9dab8e63ce1677a8743487057533ba (diff) | |
parent | 040379e2d5a77722563d73723044e065f2c1632b (diff) | |
download | dotty-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 'tests')
-rw-r--r-- | tests/neg/i1708.scala | 2 | ||||
-rw-r--r-- | tests/neg/i1708b.scala | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/neg/i1708.scala b/tests/neg/i1708.scala new file mode 100644 index 000000000..47bc456f3 --- /dev/null +++ b/tests/neg/i1708.scala @@ -0,0 +1,2 @@ +package foo { trait identifier } +package foo { class identifier } // error diff --git a/tests/neg/i1708b.scala b/tests/neg/i1708b.scala new file mode 100644 index 000000000..9bcf1864d --- /dev/null +++ b/tests/neg/i1708b.scala @@ -0,0 +1,10 @@ +package foo { + trait id { + def bar: Int + } +} +package foo { + package id { // error + class Bar + } +} |