Skip to content

Commit

Permalink
Revert "Заменил ошибку на предупреждение"
Browse files Browse the repository at this point in the history
This reverts commit cb2a8d5.
  • Loading branch information
EvilBeaver authored and Mr-Rm committed Apr 17, 2024
1 parent 555604b commit e656619
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 _))
{
SystemLogger.Write($"WARNING!!! Symbol already defined {method.Name}. Redeclaring global methods will be restricted in future versions!");
throw new CompilerException($"Symbol already defined {method.Name}");
}
var sb = _moduleCtx.DefineMethod(method);
ShiftIndex(ref sb);
Expand Down

0 comments on commit e656619

Please sign in to comment.