Commit | Line | Data |
---|---|---|
114d1c9a | 1 | /****************************************************************************** |
d44e3c4f | 2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
114d1c9a EL |
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 | |
d44e3c4f | 7 | * |
8 | * Contributors: | |
9 | * Balasko, Jeno | |
10 | * Raduly, Csaba | |
11 | * | |
114d1c9a EL |
12 | ******************************************************************************/ |
13 | module namedup2 { //^In TTCN-3 module `namedup2'://2 | |
14 | ||
15 | // Why is this not an error ? | |
16 | type boolean namedup2; //^warning: Definition with name `namedup2' hides a module identifier// | |
17 | ||
18 | type record S { //^In type definition// | |
19 | integer S, //^error: Field name clashes with type name// | |
20 | // duplicate field name: float S | |
21 | float namedup2 | |
22 | } | |
23 | ||
24 | type union U { //^In type definition// | |
25 | float U //^error: Field name clashes with type name// | |
26 | } | |
27 | ||
28 | } |