projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git]
/
mcs
/
tests
/
test-326.cs
1
// Compiler options: -langversion:default
2
// Anonymous method fix, implicit conversion inside an old-style constructor
3
// Bug 70150
4
using System;
5
public delegate double Mapper (int item);
6
7
class X
8
{
9
static int Main ()
10
{
11
Mapper mapper = new Mapper (delegate (int i){
12
return i * 12; });
13
14
if (mapper (3) == 36)
15
return 0;
16
17
// Failure
18
return 1;
19
}
20
}