13 lines
238 B
Java
Raw Normal View History

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