repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1673.cs
blob
ce18f9b403f6f70fa031fa28beebe2be782ca0b2
1
// cs1673.cs: Anonymous methods inside structs cannot access instance members of `this'. Consider copying `this' to a local variable outside the anonymous method and using the local instead
2
// Line:
3
using
System
;
4
5
struct
S
{
6
delegate void
T
();
7
8
int
f
;
9
10
public int
Test
()
11
{
12
T t
=
delegate
{
13
f
=
1
;
14
};
15
return
0
;
16
}
17
18
static void
Main
()
19
{
20
}
21
}
22
23