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