summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-14 10:24:33 -0700
committerPaul Phillips <paulp@improving.org>2013-04-14 10:24:33 -0700
commit4525e9223a2fb7c1ec3014073566b559e5839805 (patch)
treef4571715dca17a1ea6524a608600c9d17f70f59e /test/files/pos
parent18509dc1137ff10c3c4d4b26c17ad32f51bbc403 (diff)
parent67c2d6df8141d77c7ac04aa6f97cbc6e53684473 (diff)
downloadscala-4525e9223a2fb7c1ec3014073566b559e5839805.tar.gz
scala-4525e9223a2fb7c1ec3014073566b559e5839805.tar.bz2
scala-4525e9223a2fb7c1ec3014073566b559e5839805.zip
Merge pull request #2383 from vigdorchik/ticket/si-6286
SI-6286 IllegalArgumentException handling specialized method.
Diffstat (limited to 'test/files/pos')
-rwxr-xr-xtest/files/pos/spec-t6286.scala10
1 files changed, 10 insertions, 0 deletions
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))
+ }
+}