projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
gtest-lambda-35.cs
1
using System;
2
3
class C
4
{
5
static int Foo (Func<short> b)
6
{
7
return 1;
8
}
9
10
static int Foo (Func<int> a)
11
{
12
return 2;
13
}
14
15
static int Main()
16
{
17
if (Foo (() => 1) != 2)
18
return 1;
19
20
if (Foo (() => (short) 1) != 1)
21
return 2;
22
23
if (Foo (() => (byte) 1) != 1)
24
return 3;
25
26
Console.WriteLine ("ok");
27
return 0;
28
}
29
30
}