Titan Core Initial Contribution
[deliverable/titan.core.git] / function_test / Semantic_Analyser / xer / namedup2_SE.ttcn
CommitLineData
114d1c9a
EL
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 ******************************************************************************/
8module namedup2 { //^In TTCN-3 module `namedup2'://2
9
10// Why is this not an error ?
11type boolean namedup2; //^warning: Definition with name `namedup2' hides a module identifier//
12
13type record S { //^In type definition//
14 integer S, //^error: Field name clashes with type name//
15 // duplicate field name: float S
16 float namedup2
17}
18
19type union U { //^In type definition//
20 float U //^error: Field name clashes with type name//
21}
22
23}
This page took 0.023727 seconds and 5 git commands to generate.