projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C# 7 tuple (foundation only).
[mono.git]
/
mcs
/
errors
/
cs1113.cs
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
}