diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2011-02-16 09:43:43 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2011-02-16 09:43:43 +0000 |
commit | 066861f6f838adefa887854bb6b7d0df3bbcd91c (patch) | |
tree | 49ee5c7425b85863c5894bfc4f266219462d1acc /test/files/pos | |
parent | 82d3f68819d0b19171e0ee440f59cea578533854 (diff) | |
download | scala-066861f6f838adefa887854bb6b7d0df3bbcd91c.tar.gz scala-066861f6f838adefa887854bb6b7d0df3bbcd91c.tar.bz2 scala-066861f6f838adefa887854bb6b7d0df3bbcd91c.zip |
Added a missing test case for the previous commit.
No review.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t4257.scala | 15 |
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) + } + } +} + |