diff --git a/src/ScriptEngine/Compiler/ModuleCompilerContext.cs b/src/ScriptEngine/Compiler/ModuleCompilerContext.cs index 15f0b4fac..e64e2bc64 100644 --- a/src/ScriptEngine/Compiler/ModuleCompilerContext.cs +++ b/src/ScriptEngine/Compiler/ModuleCompilerContext.cs @@ -29,7 +29,7 @@ public SymbolBinding DefineMethod(MethodInfo method) { if (_outerCtx.TryGetMethod(method.Name, out _)) { - throw new CompilerException($"Symbol already defined {method.Name}"); + SystemLogger.Write($"WARNING!!! Symbol already defined {method.Name}. Redeclaring global methods will be restricted in future versions!"); } var sb = _moduleCtx.DefineMethod(method); ShiftIndex(ref sb);