summaryrefslogtreecommitdiff
path: root/test/files/pos/t4257.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t4257.scala')
-rw-r--r--test/files/pos/t4257.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t4257.scala b/test/files/pos/t4257.scala
new file mode 100644
index 0000000000..39f04a0a0a
--- /dev/null
+++ b/test/files/pos/t4257.scala
@@ -0,0 +1,15 @@
+object Test {
+
+ class SA[@specialized(Int) A] {
+ def o[U](f: ((Int, A) => Any)) {}
+
+ def o[U](f: A => Any) {}
+ }
+
+ class X[@specialized(Int) B] {
+ def x(b: B) = {
+ new SA[B]().o((x: Any) => x)
+ }
+ }
+}
+