From 1323a61e682c99084c5ca5f259d0ae89159c8a14 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 23 Mar 2011 15:33:58 +0000 Subject: 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. --- test/files/pos/javaReadsSigs/fromjava.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/files/pos/javaReadsSigs/fromjava.java (limited to 'test/files/pos') 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 x) { + Vector y = x.take(2); + String h = y.head(); + System.out.println(h); + } + void main(String[] args, List x) { + List y = x.drop(2); + String h = y.head(); + System.out.println(h); + } +} \ No newline at end of file -- cgit v1.2.3