Merge github.com:eclipse/titan.core
[deliverable/titan.core.git] / function_test / Semantic_Analyser / xer / b64_wrong_type_SE.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2016 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 * Contributors:
9 * Balasko, Jeno
10 * Raduly, Csaba
11 *
12 ******************************************************************************/
13 module base64_wrong_type_SE { //^In TTCN-3 module `base64_wrong_type_SE'://
14
15 type integer int64 //^In type definition// \
16 //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type//
17 with { variant "XSD:base64Binary" }
18
19 type float f64 //^In type definition// \
20 //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type//
21 with { variant "XSD:base64Binary" }
22
23 type boolean b64 //^In type definition// \
24 //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type//
25 with { variant "XSD:base64Binary" }
26
27 type record r64 {} //^In type definition// \
28 //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type//
29 with { variant "XSD:base64Binary" }
30
31 type record rf64 { //^In type definition//
32 integer int64 //^In record field// \
33 //^error: BASE64 can only be applied to OCTET STRING, open type or restricted character string type//
34 }
35 with { variant (int64) "XSD:base64Binary" }
36
37 }
38 with {
39 encode "XML";
40 }
This page took 0.03157 seconds and 5 git commands to generate.