/***************************************************
 ** @author   STF 521
 ** @version  0.0.1
 ** @purpose  1:6.2, Combined value list and assignment notation not allowed in the same (immediate) context.
 ** @verdict  pass reject
 ***************************************************/
/* The following requirements are tested:
 * The index notation can be used for record of and setof value notations and for arrays.
 * In this notation each index shall not appear more than once and shall conform to the range of indices allowed by the type definition.
*/

module NegSyn_0602_TopLevel_005 {

    type set of integer MySetOfType;
        type component GeneralComp {
    }

testcase TC_NegSyn_0602_TopLevel_005() runs on GeneralComp {

      var MySetOfType v_set := {
        [0] := 1,
        [1] := 2,
        [1] := 3    // error already indexed
    };

        if ( match(v_set, {1,3})) {
            setverdict(pass);
        }
        else {
            setverdict(fail);
        }
    }

    control {
        execute(TC_NegSyn_0602_TopLevel_005());
    }
}