aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2444.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t2444.scala')
-rw-r--r--tests/pos/t2444.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/t2444.scala b/tests/pos/t2444.scala
new file mode 100644
index 000000000..fac1e95d0
--- /dev/null
+++ b/tests/pos/t2444.scala
@@ -0,0 +1,15 @@
+object Test {
+
+ trait Foo
+
+ class Bar {
+ object baz extends Foo
+ }
+
+ def frob[P1, P2<:Foo](f:P1 => P2) = ()
+
+ def main(args:Array[String]) : Unit = {
+ frob((p:Bar) => p.baz)
+ }
+
+}