/****************************************************************************** * Copyright (c) 2000-2014 Ericsson Telecom AB * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ module ifelse { function f(boolean b) { // fine, it has an else branch if (b) { // fine, this if is not a single statement in the block if (b) {} return; } else { // this if should have an else branch if (b) {} } } }