summaryrefslogtreecommitdiff
path: root/test/files/pos/t6552.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-21 07:30:38 -0700
committerPaul Phillips <paulp@improving.org>2012-10-21 07:35:14 -0700
commitc130e19c1cb4f4a1126d543f29a6f0408f25763f (patch)
tree5a94b89ecbe13088be860393f2a3b4034371cda0 /test/files/pos/t6552.scala
parent6daf9c642578c0af178075f5cc10e2a19c35e12a (diff)
downloadscala-c130e19c1cb4f4a1126d543f29a6f0408f25763f.tar.gz
scala-c130e19c1cb4f4a1126d543f29a6f0408f25763f.tar.bz2
scala-c130e19c1cb4f4a1126d543f29a6f0408f25763f.zip
Fix SI-6552, regression with self types.
In 6eb55d4b7a we put in a remedy for an old issue SI-4560 which had accumulated a number of sketchy partial remedies which carried no tests to illustrate their necessity. Looks like at least one of those was doing something useful. Here's to reversion-reversion. This reverts commit c8bdf199, which itself reverted cb4fd6582.
Diffstat (limited to 'test/files/pos/t6552.scala')
-rw-r--r--test/files/pos/t6552.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t6552.scala b/test/files/pos/t6552.scala
new file mode 100644
index 0000000000..98e686a1ae
--- /dev/null
+++ b/test/files/pos/t6552.scala
@@ -0,0 +1,8 @@
+object Repros {
+ class Bar {}
+ class Baz(val myFoo: Foo) { }
+ trait Foo {
+ this: Bar =>
+ val thing = new Baz(this)
+ }
+}