module checkNoModifiedTemplateOfModifiedTemplateExternal {
    import from checkNoModifiedTemplateOfModifiedTemplate all;
    
    template MyRecordType MyTemplate5 modifies MyTemplate1 := {
        field1 := omit,  
        field2 := "A modified string"
    }

    // MyTemplate2 is already a modified template
    template MyRecordType MyTemplate6 modifies MyTemplate2 := {
        field1 := 22
    }

    // this one is even modified two times
    template MyRecordType MyTemplate7 modifies MyTemplate6 := {
        field3 := false
    }


	//nested
	template MyRecordType MyNestedTemplate4 modifies MyNestedTemplate2 := {
        field2 := "D string", 
        nestedTemplate :={field1:= 4, field2:="d", field3:=true}
    }
	

}