diff options
author | Martin Odersky <odersky@gmail.com> | 2011-03-23 15:33:58 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-03-23 15:33:58 +0000 |
commit | 1323a61e682c99084c5ca5f259d0ae89159c8a14 (patch) | |
tree | 8dcab0a0a054a989b485c206ff5420b0d25f9912 /test | |
parent | 0444c81889db92f5da69979026a42d41f4d410f5 (diff) | |
download | scala-1323a61e682c99084c5ca5f259d0ae89159c8a14.tar.gz scala-1323a61e682c99084c5ca5f259d0ae89159c8a14.tar.bz2 scala-1323a61e682c99084c5ca5f259d0ae89159c8a14.zip |
Simple test case to see whether Java understand...
Simple test case to see whether Java understands mixed in signatures.
This should be extended with more cases. Review by extempore.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/javaReadsSigs/fromjava.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/javaReadsSigs/fromjava.java b/test/files/pos/javaReadsSigs/fromjava.java new file mode 100644 index 0000000000..d31244bb95 --- /dev/null +++ b/test/files/pos/javaReadsSigs/fromjava.java @@ -0,0 +1,16 @@ +import scala.collection.immutable.Vector; +import scala.collection.immutable.List; + +public class fromjava { + + void main(String[] args, Vector<String> x) { + Vector<String> y = x.take(2); + String h = y.head(); + System.out.println(h); + } + void main(String[] args, List<String> x) { + List<String> y = x.drop(2); + String h = y.head(); + System.out.println(h); + } +}
\ No newline at end of file |