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
w32file-unix.c: In function 'mono_w32file_get_file_size':
[mono-project.git]
/
mcs
/
errors
/
cs1113.cs
blob
eda00f3ae533fccd48ea99a3ff6c1e9a78770669
1
// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
2
// Line: 12
3
4
5
delegate void
D
();
6
7
public class
C
8
{
9
static void
Main
()
10
{
11
S s
=
new
S
();
12
D d
=
s
.
Foo
;
13
}
14
}
15
16
public struct
S
17
{
18
}
19
20
public static class
Extension
21
{
22
public static void
Foo
(
this
S s
)
{ }
23
}