repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
test-326.cs
blob
31220ac9856c857fd4652749fa71e5470b7f316d
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
public 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
}