/******************************************************************************
 * Copyright (c) 2000-2021 Ericsson Telecom AB
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors:
 *   Balasko, Jeno
 *   Raduly, Csaba
 *
 ******************************************************************************/
module namedup1 { 	//^In TTCN-3 module `namedup1'://

const integer A := 1; //^Previous definition with identifier `A' in higher scope unit is here//

function MyBehaviourA() //^In function definition//
{
  var integer A := 1; //^error: Definition with identifier `A' is not unique in the scope hierarchy// \
  //^Previous definition with identifier `A' in higher scope unit is here//

  while(A > 3) //^In while statement//
  {
  const boolean A := true; //^error: Definition with identifier `A' is not unique in the scope hierarchy//

  }
}

}
