2009-11-12 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0136-11.cs
blobc5771a0a6356de460cc9c3e76a2fd22c59b5b591
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;
5 public delegate void Hello (Test test);
7 public class Test
9 public void Whatever ()
10 { }
12 static void Main ()
14 Hello hello = delegate (Test test) {
15 Test t = test;
16 t.Whatever ();
18 Test t = new Test ();
19 hello (t);