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
retag
[mcs.git]
/
errors
/
cs1706-2.cs
blob
03d77ecd4083a1776343f854dd3fc13cb3f5449a
1
// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
2
// Line: 14
3
4
public delegate void
Proc
();
5
6
public class
AAttribute
:
System
.
Attribute
7
{
8
public
AAttribute
(
Proc p
)
9
{ }
10
}
11
12
public class
Class
13
{
14
[
A
((
object
)
delegate
{ return; }
)]
15
public void
Foo
()
16
{
17
}
18
}