- Environment environment, String name) {
- if(SCLCompilerConfiguration.ALLOW_OVERLOADING)
+ Environment environment, ConcreteModule currentModule, String name) {
+ if(SCLCompilerConfiguration.ALLOW_OVERLOADING) {
+ if(currentModule.getValue(name) != null) {
+ errorLog.log(location,
+ "Value " + name + " has already been defined in this module.");
+ }