[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / errors / cs0136-11.cs
1 // CS0136: A local variable named `t' cannot be declared in this scope because it would give a different meaning to `t', which is already used in a `child' scope to denote something else
2 // Line: 18
3 using System;
4
5 public delegate void Hello (Test test);
6
7 public class Test
8 {
9         public void Whatever ()
10         { }
11
12         static void Main ()
13         {
14                 Hello hello = delegate (Test test) {
15                         Test t = test;
16                         t.Whatever ();
17                 };
18                 Test t = new Test ();
19                 hello (t);
20         }
21 }