diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-14 10:24:33 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-14 10:24:33 -0700 |
commit | 4525e9223a2fb7c1ec3014073566b559e5839805 (patch) | |
tree | f4571715dca17a1ea6524a608600c9d17f70f59e /test | |
parent | 18509dc1137ff10c3c4d4b26c17ad32f51bbc403 (diff) | |
parent | 67c2d6df8141d77c7ac04aa6f97cbc6e53684473 (diff) | |
download | scala-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')
-rwxr-xr-x | test/files/pos/spec-t6286.scala | 10 |
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)) + } +} |