Name-Clashing Import
Definition:
An imported element causes a name clash with a declaration in the importing module or another imported element.
Code Example:
module Foo {
const charstring MY_CONST := "foo";
}
module Bar {
import from Foo all;
const charstring MY_CONST := "bar";
function f(in charstring s) return boolean {
if (MY_CONST == s) {
return true;
}
return false;
}
}
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring