aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7668.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-08-24 15:07:14 +0200
committerMartin Odersky <odersky@gmail.com>2016-08-26 11:13:17 +0200
commit55ad7ebb5960ed7590610c777cce229f7241c0d3 (patch)
treeae2582bd26d7f97fa8cefd89e858a4808afc31f7 /tests/pos/t7668.scala
parentbdb425c57128c85fc3f7bd03b1906f55805d2194 (diff)
downloaddotty-55ad7ebb5960ed7590610c777cce229f7241c0d3.tar.gz
dotty-55ad7ebb5960ed7590610c777cce229f7241c0d3.tar.bz2
dotty-55ad7ebb5960ed7590610c777cce229f7241c0d3.zip
Make inherited inferred result type work for dependent methods
We did not properly rename parameter references before.
Diffstat (limited to 'tests/pos/t7668.scala')
-rw-r--r--tests/pos/t7668.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pos/t7668.scala b/tests/pos/t7668.scala
new file mode 100644
index 000000000..6657ffab6
--- /dev/null
+++ b/tests/pos/t7668.scala
@@ -0,0 +1,12 @@
+trait Space {
+ type T
+ val x: T
+}
+
+trait Extractor {
+ def extract(s: Space): s.T
+}
+
+class Sub extends Extractor {
+ def extract(ss: Space) = ss.x
+}