summaryrefslogtreecommitdiff
path: root/test/files/pos/t2444.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2444.scala')
-rw-r--r--test/files/pos/t2444.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t2444.scala b/test/files/pos/t2444.scala
new file mode 100644
index 0000000000..6f07dcf92d
--- /dev/null
+++ b/test/files/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)
+ }
+
+}