diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-11-26 09:40:16 -0800 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-11-26 09:40:16 -0800 |
commit | 7cd50ba39c332c39990bc3a7103e1f86b040032e (patch) | |
tree | 58a357ae3320b8328963989912c1ef91a9a40f57 /test/files | |
parent | 7a1a160d8ba2d1c2a8d71453978ac8e4d3838f06 (diff) | |
parent | 05620ad4e158297c7f12e9f703d19e379ed084ca (diff) | |
download | scala-7cd50ba39c332c39990bc3a7103e1f86b040032e.tar.gz scala-7cd50ba39c332c39990bc3a7103e1f86b040032e.tar.bz2 scala-7cd50ba39c332c39990bc3a7103e1f86b040032e.zip |
Merge pull request #3195 from retronym/ticket/8011
SI-8011 Test case for recently fixed value class bug
Diffstat (limited to 'test/files')
-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 |