Titan Core Initial Contribution
[deliverable/titan.core.git] / function_test / Semantic_Analyser / xer / useunion_not_union_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 useunion_not_union_SE { //^In TTCN-3 module `useunion_not_union_SE'://
9
10type record uu { //^In type definition// \
11 //^error: USE-UNION can only applied to a CHOICE/union type//
12}
13with {
14 variant "useUnion"
15
16}
17
18type enumerated truth { //^In type definition// \
19 //^error: USE-UNION can only applied to a CHOICE/union type//
20 TRUE, FALSE, FILE_NOT_FOUND
21}
22with {
23 variant "useUnion"
24
25}
26
27type record of integer ints //^In type definition// \
28 //^error: USE-UNION can only applied to a CHOICE/union type//
29with {
30 variant "useUnion"
31}
32
33
34
35}
36with {
37 encode "XML";
38}
This page took 0.024267 seconds and 5 git commands to generate.