2014-07-02 14:27:10 -07: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;
}}