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 no_text_all_SE { //^In TTCN-3 module `no_text_all_SE'://
9 // various cases where "TEXT" or "TEXT ALL AS" not allowed
11 type charstring c //^In type definition// \
12 //^error: TEXT not allowed for type charstring//
14 variant "text all as uppercased"
17 type record r {} //^In type definition// \
18 //^error: TEXT not allowed for type \@no_text_all_SE.r//
20 variant "text all as uppercased"
23 type record of boolean votes //^In type definition// \
24 //^error: TEXT not allowed for type @no_text_all_SE.votes//
26 variant "text 'true' as 'yea'";
27 variant "text 'false' as 'nay'";
30 type enumerated e { foo, bar, baz } //^In type definition// \
31 //^error: Lone 'TEXT' only allowed for boolean//
36 type boolean truthiness // should be no error
41 type truthiness reality // boolean, at its heart
43 variant "text 'true' as '1'";