Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0136-7.cs
blob4e07e8016194a24e9813d99f56e4af5de1289f87
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 RunIt (Test t)
14 Hello hello = delegate (Test test) {
15 Test t = test;
16 t.Whatever ();
18 hello (t);
21 static void Main ()
23 Test t = new Test ();
24 RunIt (t);