aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr114343/case3/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr114343/case3/Test.java')
-rw-r--r--tests/bugs150/pr114343/case3/Test.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs150/pr114343/case3/Test.java b/tests/bugs150/pr114343/case3/Test.java
new file mode 100644
index 000000000..2634cd915
--- /dev/null
+++ b/tests/bugs150/pr114343/case3/Test.java
@@ -0,0 +1,16 @@
+import java.util.*;
+
+public class Test<T extends Number> {
+
+ Set<T> set = new HashSet<T>();
+ T t = null;
+
+ public <T> T[] toArray(T[] a) {
+ System.err.println("In toArray()");
+ return set.toArray(a);
+ }
+
+ public T getFirst() {
+ return t;
+ }
+}