Skip to content

Commit

Permalink
Заменил ошибку на предупреждение
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Nov 6, 2023
1 parent 08bcb49 commit cb2a8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScriptEngine/Compiler/ModuleCompilerContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb2a8d5

Please sign in to comment.