diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-07 11:22:44 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-07 11:22:44 +0000 |
commit | ca392540e36bf1fc52350901b3faf5bc08f4175c (patch) | |
tree | 17fef00d7ae2c028cad1b72d02b85b657341c483 /test/files/run/bug4238 | |
parent | 2edab8991bc07ce0eecb3a85d8317e31f98df840 (diff) | |
download | scala-ca392540e36bf1fc52350901b3faf5bc08f4175c.tar.gz scala-ca392540e36bf1fc52350901b3faf5bc08f4175c.tar.bz2 scala-ca392540e36bf1fc52350901b3faf5bc08f4175c.zip |
More signature work arising from actually looki...
More signature work arising from actually looking at the signatures.
Slightly improved the coverage of the tests. No review.
Diffstat (limited to 'test/files/run/bug4238')
-rw-r--r-- | test/files/run/bug4238/J_1.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/files/run/bug4238/J_1.java b/test/files/run/bug4238/J_1.java index 1cc8058385..47a9c21000 100644 --- a/test/files/run/bug4238/J_1.java +++ b/test/files/run/bug4238/J_1.java @@ -1,4 +1,16 @@ +import scala.*; + class J_1 { - scala.collection.mutable.HashMap<String, String> x = + scala.collection.mutable.HashMap<String, String> map = new scala.collection.mutable.HashMap<String, String>(); + + Function1<Tuple2<String, String>, Integer> f = + new scala.runtime.AbstractFunction1<Tuple2<String, String>, Integer>() { + public Integer apply(Tuple2<String, String> s) { + return s._1().length(); + } + }; + + scala.collection.Seq<Integer> counts = + map.groupBy(f).keys().toList(); } |