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