Loading de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/TTCN3Validator.xtend +6 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,12 @@ class TTCN3Validator extends AbstractTTCN3Validator { error('Name clash with another variable definition in this scope!', feature); return; } val defList = parent.findDesiredParent(typeof(TTCN3Module)) as TTCN3Module if (defList.defs != null && defList.defs.checkNameClashModuleDefinitionsList(variable, variable.name)) { error('Name clash with another variable definition in this scope!', feature); return; } return; // only check clashes with module def list } else if (parent instanceof ForStatement) { if (parent.init.checkNameClashInitial(variable)) { error('Name clash with another variable definition in this scope!', feature); Loading Loading
de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/TTCN3Validator.xtend +6 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,12 @@ class TTCN3Validator extends AbstractTTCN3Validator { error('Name clash with another variable definition in this scope!', feature); return; } val defList = parent.findDesiredParent(typeof(TTCN3Module)) as TTCN3Module if (defList.defs != null && defList.defs.checkNameClashModuleDefinitionsList(variable, variable.name)) { error('Name clash with another variable definition in this scope!', feature); return; } return; // only check clashes with module def list } else if (parent instanceof ForStatement) { if (parent.init.checkNameClashInitial(variable)) { error('Name clash with another variable definition in this scope!', feature); Loading