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

13 lines
238 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4620794
* @summary compiler allows null + null
* @author gafter
*
* @compile/fail/ref=NullAppend.out -XDrawDiagnostics NullAppend.java
*/
class NullAppend {{
String s = null + null;
}}