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
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs1113-2.cs
blob
5043b34db45315d18b5023bc6553f896ba75370d
1
// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
2
// Line: 11
3
4
delegate void
D
();
5
6
public class
C
7
{
8
static void
Main
()
9
{
10
S s
=
new
S
();
11
D d
=
s
.
Foo
;
12
}
13
}
14
15
public struct
S
16
{
17
public void
Foo
(
int
i
)
18
{
19
}
20
}
21
22
public static class
Extension
23
{
24
public static void
Foo
(
this
S s
)
{ }
25
}