NASHORN-57.js revision 2:da1e581c933b
131921Sbrian/* 231921Sbrian * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 331921Sbrian * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 431921Sbrian * 531921Sbrian * This code is free software; you can redistribute it and/or modify it 631921Sbrian * under the terms of the GNU General Public License version 2 only, as 730715Sbrian * published by the Free Software Foundation. 831921Sbrian * 931921Sbrian * This code is distributed in the hope that it will be useful, but WITHOUT 1031921Sbrian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1131921Sbrian * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1231921Sbrian * version 2 for more details (a copy is included in the LICENSE file that 1331921Sbrian * accompanied this code). 1431921Sbrian * 1531921Sbrian * You should have received a copy of the GNU General Public License version 1630715Sbrian * 2 along with this work; if not, write to the Free Software Foundation, 1731921Sbrian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1831921Sbrian * 1931921Sbrian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2031921Sbrian * or visit www.oracle.com if you need additional information or have any 2131921Sbrian * questions. 2231921Sbrian */ 2331921Sbrian 2431921Sbrian/** 2531921Sbrian * NASHORN-57 : newline between operand and post decrement/increment operator results in NullPointerException. 2631921Sbrian * 2731921Sbrian * @test/compile-error 2831921Sbrian */ 2931921Sbrian 306059Samurai 316059Samuraivar x = 1; 3231514Sbrian 3330715Sbrian// line terminator here should result in compiler error. 3430715Sbrianx 3531061Sbrian++; 3631514Sbrian