summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/javaReadsSigs/fromjava.java16
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