changeset 8431 | 21758b2bba40 |
8430:be3e5581ea25 | 8431:21758b2bba40 |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 7020043 |
|
4 * |
|
5 * @summary Project Coin: diamond allowed on non-generic type |
|
6 * @author Rémi Forax |
|
7 * @compile/fail/ref=Neg12.out Neg12.java -XDrawDiagnostics |
|
8 * |
|
9 */ |
|
10 |
|
11 class DiamondRaw { |
|
12 public static void main(String[] args) { |
|
13 String s = new String<>("foo"); |
|
14 } |
|
15 } |