diff --git a/Slowsharp/Runner/Runner.Lambda.cs b/Slowsharp/Runner/Runner.Lambda.cs index 0df0c4d..72f449d 100644 --- a/Slowsharp/Runner/Runner.Lambda.cs +++ b/Slowsharp/Runner/Runner.Lambda.cs @@ -120,10 +120,13 @@ private HybInstance RunParenthesizedLambda(ParenthesizedLambdaExpressionSyntax n if (ps.Count == 0) { + var ssInterpretMethodInfo = new SSInterpretMethodInfo(this, "__scripteval2", HybTypeCache.Void, null, new HybType[] { }, HybTypeCache.Void); body = new Action(() => { + Ctx.PushMethod(ssInterpretMethodInfo); RunBlock(node.Body as BlockSyntax); if (Halt == HaltType.Return) Halt = HaltType.None; + Ctx.PopMethod(); }); } else if (ps.Count == 1)