2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0136-8.cs
blob82de3913a651616491bca206951da04de8399317
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 `parent or current' scope to denote something else
2 // Line: 15
3 using System;
5 public delegate void Hello (Test test);
7 public class Test
9 public void Whatever ()
10 { }
12 static void Main ()
14 Test t = new Test ();
15 Hello hello = delegate (Test t) {
16 t.Whatever ();
18 hello (t);