diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-11-26 15:31:12 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-11-26 15:31:12 +0100 |
commit | 05620ad4e158297c7f12e9f703d19e379ed084ca (patch) | |
tree | 58a357ae3320b8328963989912c1ef91a9a40f57 | |
parent | 7a1a160d8ba2d1c2a8d71453978ac8e4d3838f06 (diff) | |
download | scala-05620ad4e158297c7f12e9f703d19e379ed084ca.tar.gz scala-05620ad4e158297c7f12e9f703d19e379ed084ca.tar.bz2 scala-05620ad4e158297c7f12e9f703d19e379ed084ca.zip |
SI-8011 Test case for recently fixed value class bug
The improvements to symbol substitution in cb37548ef made this
one work.
-rw-r--r-- | test/files/pos/t8011.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t8011.scala b/test/files/pos/t8011.scala new file mode 100644 index 0000000000..76bd7acd14 --- /dev/null +++ b/test/files/pos/t8011.scala @@ -0,0 +1,8 @@ +class ThingOps1(val x: String) extends AnyVal { + def fn[A]: Any = { + new X[A] { def foo(a: A) = a } + 0 + } +} + +trait X[B] { def foo(a: B): Any }
\ No newline at end of file |