diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-20 00:43:28 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-20 00:43:37 +0200 |
commit | c093792189f49c3e72ada99ca0fdb97e4023ef78 (patch) | |
tree | affb7d3f9df4651c1bf52cbe6ec928340026decc /tests/pending/run | |
parent | 9bf44f867c1a9f4625dd7fac9575c3e74373402b (diff) | |
download | dotty-c093792189f49c3e72ada99ca0fdb97e4023ef78.tar.gz dotty-c093792189f49c3e72ada99ca0fdb97e4023ef78.tar.bz2 dotty-c093792189f49c3e72ada99ca0fdb97e4023ef78.zip |
Map proxy references in constructors to parameters
Proxy references in constructors can't be left as fields because
they can happen before the supercall.
Diffstat (limited to 'tests/pending/run')
-rw-r--r-- | tests/pending/run/shortClass.check | 10 | ||||
-rw-r--r-- | tests/pending/run/shortClass.scala | 24 |
2 files changed, 0 insertions, 34 deletions
diff --git a/tests/pending/run/shortClass.check b/tests/pending/run/shortClass.check deleted file mode 100644 index fbdb725cc..000000000 --- a/tests/pending/run/shortClass.check +++ /dev/null @@ -1,10 +0,0 @@ -bippity.bop.Foo -bippity.bop.Foo$Bar -bippity.bop.Foo$Bar$ -Test$$anon$1 -Test$$anon$2 -Foo -Bar -Bar$ -Foo with DingDongBippy -Bar with DingDongBippy diff --git a/tests/pending/run/shortClass.scala b/tests/pending/run/shortClass.scala deleted file mode 100644 index b7bb01689..000000000 --- a/tests/pending/run/shortClass.scala +++ /dev/null @@ -1,24 +0,0 @@ -import scala.reflect.internal.util._ - -package bippity { - trait DingDongBippy - - package bop { - class Foo { - class Bar - object Bar - } - } -} - -object Test { - import bippity._ - import bop._ - - def main(args: Array[String]): Unit = { - val f = new Foo - val instances = List(f, new f.Bar, f.Bar, new Foo with DingDongBippy, new f.Bar with DingDongBippy) - instances map (_.getClass.getName) foreach println - instances map shortClassOfInstance foreach println - } -} |