From 05620ad4e158297c7f12e9f703d19e379ed084ca Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 26 Nov 2013 15:31:12 +0100 Subject: SI-8011 Test case for recently fixed value class bug The improvements to symbol substitution in cb37548ef made this one work. --- test/files/pos/t8011.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/t8011.scala (limited to 'test/files') 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 -- cgit v1.2.3