Commit | Line | Data |
---|---|---|
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 | ******************************************************************************/ | |
8 | module useunion_not_union_SE { //^In TTCN-3 module `useunion_not_union_SE':// | |
9 | ||
10 | type record uu { //^In type definition// \ | |
11 | //^error: USE-UNION can only applied to a CHOICE/union type// | |
12 | } | |
13 | with { | |
14 | variant "useUnion" | |
15 | ||
16 | } | |
17 | ||
18 | type enumerated truth { //^In type definition// \ | |
19 | //^error: USE-UNION can only applied to a CHOICE/union type// | |
20 | TRUE, FALSE, FILE_NOT_FOUND | |
21 | } | |
22 | with { | |
23 | variant "useUnion" | |
24 | ||
25 | } | |
26 | ||
27 | type record of integer ints //^In type definition// \ | |
28 | //^error: USE-UNION can only applied to a CHOICE/union type// | |
29 | with { | |
30 | variant "useUnion" | |
31 | } | |
32 | ||
33 | ||
34 | ||
35 | } | |
36 | with { | |
37 | encode "XML"; | |
38 | } |