From 67c2d6df8141d77c7ac04aa6f97cbc6e53684473 Mon Sep 17 00:00:00 2001 From: Eugene Vigdorchik Date: Wed, 10 Apr 2013 14:34:08 +0400 Subject: SI-6286 IllegalArgumentException handling specialized method. Specialize assigns SpecialOverride info to a specialized method even when there is a further specialization that should be forwarded to. --- test/files/pos/spec-t6286.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 test/files/pos/spec-t6286.scala (limited to 'test/files/pos') diff --git a/test/files/pos/spec-t6286.scala b/test/files/pos/spec-t6286.scala new file mode 100755 index 0000000000..4d87998ec6 --- /dev/null +++ b/test/files/pos/spec-t6286.scala @@ -0,0 +1,10 @@ +trait Foo[@specialized(Int) A] { + def fun[@specialized(Int) B](init: B)(f: (B, A) => B): B +} + +class Bar(values: Array[Int]) extends Foo[Int] { + def fun[@specialized(Int) C](init: C)(f: (C, Int) => C): C = { + val arr = values + f(init, arr(0)) + } +} -- cgit v1.2.3