diff options
Diffstat (limited to 'tests/untried/pos/t7232')
-rw-r--r-- | tests/untried/pos/t7232/Foo.java | 9 | ||||
-rw-r--r-- | tests/untried/pos/t7232/List.java | 4 | ||||
-rw-r--r-- | tests/untried/pos/t7232/Test.scala | 5 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/pos/t7232/Foo.java b/tests/untried/pos/t7232/Foo.java new file mode 100644 index 000000000..3478301b3 --- /dev/null +++ b/tests/untried/pos/t7232/Foo.java @@ -0,0 +1,9 @@ +package pack; + +import java.util.List; + +public class Foo { + public static java.util.List okay() { throw new Error(); } + + public static List wrong() { throw new Error(); } +} diff --git a/tests/untried/pos/t7232/List.java b/tests/untried/pos/t7232/List.java new file mode 100644 index 000000000..e42c63aa6 --- /dev/null +++ b/tests/untried/pos/t7232/List.java @@ -0,0 +1,4 @@ +package pack; + +public class List { +} diff --git a/tests/untried/pos/t7232/Test.scala b/tests/untried/pos/t7232/Test.scala new file mode 100644 index 000000000..49c3c12ae --- /dev/null +++ b/tests/untried/pos/t7232/Test.scala @@ -0,0 +1,5 @@ +object Test { + import pack._ + Foo.okay().size() + Foo.wrong().size() +} |