jdk-24/test/langtools/tools/javac/expression/NullAppend2.java
2017-09-12 19:03:39 +02:00

12 lines
239 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4717193
* @summary javac improperly allows null + 1
* @author gafter
* @compile/fail/ref=NullAppend2.out -XDrawDiagnostics NullAppend2.java
*/
class NullAppend2 {{
String s = null + 1;
}}