Skip to content

Commit

Permalink
[java] Add type parameters for test
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Feb 28, 2020
1 parent ee211d4 commit eae6e96
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ public record VarRec(@Nullable @Deprecated String @Nullable ... x) {}

public record ArrayRec(int x[]) {}

public record EmptyRec() {
public record EmptyRec<Type>() {
public void foo() { }
public Type bar() { return null; }
public static void baz() {
EmptyRec<String> r = new EmptyRec<>();
System.out.println(r);
}
}
}

0 comments on commit eae6e96

Please sign in to comment.