aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-12-20 17:18:30 +0100
committerGitHub <noreply@github.com>2016-12-20 17:18:30 +0100
commit098c50ac83eb4d18b23a1ed888cf601053c46ae6 (patch)
treed5c45fd83ebccf3c8dc923e41e695723a3c04a1a /tests/pos
parentafa83099a2300fcd09afe6514f9112c75f9fb4dc (diff)
parenta7d17e286760879a35dfaeeadca1dbad2aa85dfc (diff)
downloaddotty-098c50ac83eb4d18b23a1ed888cf601053c46ae6.tar.gz
dotty-098c50ac83eb4d18b23a1ed888cf601053c46ae6.tar.bz2
dotty-098c50ac83eb4d18b23a1ed888cf601053c46ae6.zip
Merge pull request #1832 from dotty-staging/fix-1810
Fix #1812, Symbols.mapSymbols shouldn't replace denotations
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i1812.scala12
-rw-r--r--tests/pos/i1812b.scala11
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/pos/i1812.scala b/tests/pos/i1812.scala
new file mode 100644
index 000000000..653274883
--- /dev/null
+++ b/tests/pos/i1812.scala
@@ -0,0 +1,12 @@
+class FF[R] {
+ def compose(): R = ???
+}
+
+class Test(x: Int) extends AnyVal {
+ def method: Unit = {
+ class Bla
+ class Foo extends FF[Bla] {
+ override def compose() = super[FF].compose()
+ }
+ }
+}
diff --git a/tests/pos/i1812b.scala b/tests/pos/i1812b.scala
new file mode 100644
index 000000000..492c545f1
--- /dev/null
+++ b/tests/pos/i1812b.scala
@@ -0,0 +1,11 @@
+class FF[R] {
+ def compose(): R = ???
+}
+
+class Test(x: Int) extends AnyVal {
+ def method: Unit = {
+ class Bla{ def bar:a.S = ???}
+ trait TRT{ type S}
+ val a: TRT = ???
+ }
+}