repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
errors
/
cs0841-6.cs
blob
11be776529ec0e73773c377c4a557c8780f47a62
1
// CS0841: A local variable `n' cannot be used before it is declared
2
// Line: 17
3
4
class
MainClass
5
{
6
public delegate void
Fn
(
MainClass o
);
7
8
public static void
Call
(
Fn f
)
9
{
10
f
(
null
);
11
}
12
13
public static void
Main
()
14
{
15
Call
(
delegate
(
MainClass o
) {
16
n
=
o
;
17
MainClass n
=
new
MainClass
();
18
});
19
}
20
}