Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
libcore
/
3789983e89c9de252ef546a1b98a732a7d066650
/
.
/
test
/
langtools
/
tools
/
javac
/
Parens2.java
blob: a7f3f1d2f52337e9fe555277fda3d371f76fcf05 [
file
] [
log
] [
blame
]
/*
* @test /nodynamiccopyright/
* @bug 4408036
* @summary Compiler accepted "(i=2);" as a valid expession statement.
* @author gafter
*
* @compile/fail/ref=Parens2.out -XDrawDiagnostics Parens2.java
*/
class
Parens2
{
void
f
()
{
int
i
;
(
i
=
2
);
}
}