You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
20
mcs/errors/cs0841-6.cs
Normal file
20
mcs/errors/cs0841-6.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// CS0841: A local variable `n' cannot be used before it is declared
|
||||
// Line: 17
|
||||
|
||||
class MainClass
|
||||
{
|
||||
public delegate void Fn (MainClass o);
|
||||
|
||||
public static void Call (Fn f)
|
||||
{
|
||||
f(null);
|
||||
}
|
||||
|
||||
public static void Main ()
|
||||
{
|
||||
Call (delegate (MainClass o) {
|
||||
n = o;
|
||||
MainClass n = new MainClass ();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user