diff options
Diffstat (limited to 'test/files/run/t1459generic/VarargGeneric.java')
-rw-r--r-- | test/files/run/t1459generic/VarargGeneric.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t1459generic/VarargGeneric.java b/test/files/run/t1459generic/VarargGeneric.java new file mode 100644 index 0000000000..9b37a0fe3f --- /dev/null +++ b/test/files/run/t1459generic/VarargGeneric.java @@ -0,0 +1,7 @@ +public interface VarargGeneric<T> { + String genericOne(T x, String args); + // we cannot annotate this with @SafeVarargs, because + // it's in an interface. so that's why a warning from + // javac appears in the checkfile. + String genericVar(T x, String... args); +} |