repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In class/Microsoft.Build.Tasks:
[mcs.git]
/
tests
/
test-326.cs
blob
5bb9a0f525d58976199605ec2a303509f2386dad
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
}