Commit | Line | Data |
---|---|---|
114d1c9a | 1 | /****************************************************************************** |
3abe9331 | 2 | * Copyright (c) 2000-2015 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 | |
7 | ******************************************************************************/ | |
8 | module base64_wrong_type_SE { //^In TTCN-3 module `base64_wrong_type_SE':// | |
9 | ||
10 | type integer int64 //^In type definition// \ | |
11 | //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type// | |
12 | with { variant "XSD:base64Binary" } | |
13 | ||
14 | type float f64 //^In type definition// \ | |
15 | //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type// | |
16 | with { variant "XSD:base64Binary" } | |
17 | ||
18 | type boolean b64 //^In type definition// \ | |
19 | //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type// | |
20 | with { variant "XSD:base64Binary" } | |
21 | ||
22 | type record r64 {} //^In type definition// \ | |
23 | //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type// | |
24 | with { variant "XSD:base64Binary" } | |
25 | ||
26 | type record rf64 { //^In type definition// | |
27 | integer int64 //^In record field// \ | |
28 | //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type// | |
29 | } | |
30 | with { variant (int64) "XSD:base64Binary" } | |
31 | ||
32 | } | |
33 | with { | |
34 | encode "XML"; | |
35 | } |