1/*
2 * @test /nodynamiccopyright/
3 * @bug 4408036
4 * @summary Compiler accepted "(i=2);" as a valid expession statement.
5 * @author gafter
6 *
7 * @compile/fail/ref=Parens2.out -XDrawDiagnostics Parens2.java
8 */
9
10class Parens2 {
11    void f() {
12        int i;
13        (i = 2);
14    }
15}
16