1 /******************************************************************************
2 * Copyright (c) 2000-2014 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
8 module namedup1 { //^In TTCN-3 module `namedup1'://
10 const integer A := 1; //^Previous definition with identifier `A' in higher scope unit is here//
12 function MyBehaviourA() //^In function definition//
14 var integer A := 1; //^error: Definition with identifier `A' is not unique in the scope hierarchy// \
15 //^Previous definition with identifier `A' in higher scope unit is here//
17 while(A > 3) //^In while statement//
19 const boolean A := true; //^error: Definition with identifier `A' is not unique in the scope hierarchy//