projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3678 from mono/seq-read
[mono.git]
/
mcs
/
errors
/
cs1113-2.cs
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
}