/*****************************************************************
 ** @author   STF 409
 ** @version  0.0.1
 ** @purpose  1:15.5, Ensure that parameter names in modified templates are the same.
 ** @verdict  pass reject
 *****************************************************************/

module NegSem_1505_ModifiedTemplates_004 {

type component GeneralComp { }

type record MyMessageType {
	integer field1,
	charstring field2,
	boolean field3
}

template MyMessageType m_templateOne(integer p_value) := {
	field1 := p_value,
	field2 := "Hello World",
	field3 := true
}

// illegal as p_intValue is a different parameter name than p_value
template MyMessageType m_templateTwo(integer p_intValue) modifies m_templateOne := {
	field3 := false
}

}