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:20.5.1, verify that error is generated when deactivated reference is on incorrect type
13 ** @verdict pass reject
14 ***************************************************/
16 // The following requirement is tested:
17 // A deactivate operation will remove the referenced default from the list of defaults.
19 module NegSem_200503_the_deactivate_operation_003 {
23 } with {extension "internal"}
25 type component GeneralComp {
29 altstep a1() runs on GeneralComp {
30 [] p.receive(integer:?) {
35 testcase TC_NegSem_200503_the_deactivate_operation_003() runs on GeneralComp {
36 var GeneralComp v_ptc := null;
38 connect(self:p, self:p);
41 deactivate(v_ptc); // incorrect type -> error
44 [] p.receive(integer:0) { // not expected: leads to default invocation
51 execute(TC_NegSem_200503_the_deactivate_operation_003());