{
if (current_block == null) {
current_block = new ToplevelBlock (compiler, current_local_parameters, loc);
+ parsing_anonymous_method = false;
} else if (parsing_anonymous_method) {
current_block = new ParametersBlock (current_block, current_local_parameters, loc);
parsing_anonymous_method = false;
--- /dev/null
+using System;
+
+public class C
+{
+ public event EventHandler MyDelegate = delegate { };
+
+ internal void DoSomething (bool bValue)
+ {
+ if (!bValue) {
+ // It has to be here to check we are closing correctly top-block
+ return;
+ }
+ }
+
+ public static void Main ()
+ {
+ }
+}
+
+