/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:22.4, incompatible from and sender clause
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// If the check operation contains both from and sender clause, the variable or parameter
// referenced in the sender clause shall be type compatible with the template in the from
// clause.

module NegSem_2204_the_check_operation_003 {

    type integer address;

    type port P message {
		inout integer;
	}

    type component GeneralComp {
		port P p;
	}

    testcase TC_NegSem_2204_the_check_operation_003() runs on GeneralComp {
        var address v_addr;
        p.send(100);
        alt {
            [] p.check(from GeneralComp:? -> sender v_addr) { }
            [] p.check {}
        }
        setverdict(pass);
    }

    control {
        execute(TC_NegSem_2204_the_check_operation_003(), 5.0);
    }
}