提交 0a0e04ba 编写于 作者: M Marek Safar

[656150] Fix repl recovery after invalid expression.

上级 073a0e30
......@@ -243,6 +243,8 @@ namespace Mono.CSharp
lock (evaluator_lock){
if (!inited)
Init ();
else
ctx.Report.Printer.Reset ();
// RootContext.ToplevelTypes = new ModuleContainer (ctx);
......
......@@ -657,6 +657,12 @@ namespace Mono.CSharp {
output.WriteLine (s + msg.MessageType + ")");
}
}
public void Reset ()
{
// Temporary hack for broken repl flow
errors = warnings = 0;
}
}
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册