projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
gtest-050.cs
1
// Type inference when creating delegates
2
3
using System;
4
5
delegate int D (string s, int i);
6
7
delegate int E ();
8
9
class X
10
{
11
public static T F<T> (string s, T t)
12
{
13
return t;
14
}
15
16
public static T G<T> ()
17
{
18
throw new ArgumentException ();
19
}
20
21
static void Main ()
22
{
23
D d1 = new D (F<int>);
24
D d2 = new D (F);
25
26
E e1 = new E (G<int>);
27
}
28
}