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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:6.2.0.6, ensure that anytype can act as a set type
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_060206_anytype_015 {
22 type component GeneralComp {
24 var anytype x; // anytype x variable
29 }; // Set y contains field1=abc and field2=true
33 testcase TC_Sem_060206_anytype_015() runs on GeneralComp {
35 x.MySet := y; // anytype x now gets the type MySet and the values given by y.
37 if ( match(x.MySet.field1, "abc") and match(x.MySet.field2, true)) {
47 execute(TC_Sem_060206_anytype_015());
52 extension "anytype MySet"