diff options
author | Martin Odersky <odersky@gmail.com> | 2009-10-12 10:57:15 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-10-12 10:57:15 +0000 |
commit | 5d61522281b785ba53c34fe38fe6e1ce59bcfac9 (patch) | |
tree | e0ccda2a8a7fe62ce4a2e2657dac9931d534eaec /test/files/pos/t2444.scala | |
parent | bf02e46f2ae1fde75f28da909b8a6e23383cec9b (diff) | |
download | scala-5d61522281b785ba53c34fe38fe6e1ce59bcfac9.tar.gz scala-5d61522281b785ba53c34fe38fe6e1ce59bcfac9.tar.bz2 scala-5d61522281b785ba53c34fe38fe6e1ce59bcfac9.zip |
Fixed #2444
Diffstat (limited to 'test/files/pos/t2444.scala')
-rw-r--r-- | test/files/pos/t2444.scala | 15 |
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) + } + +} |