blob: da593f6a8c971812716b8b24e7def874c3a3bcfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
using System;
public class A
{
public A (Action action)
{
}
}
public class B : A
{
public B ()
: base (() => {
dynamic d = 1;
Test (d);
})
{
}
static decimal Test (dynamic arg)
{
return 3m;
}
}
public class B2
{
public Action a = () => {
dynamic d = 1;
Test (d);
};
static decimal Test (dynamic arg)
{
return 3m;
}
}
class M
{
static void Main ()
{
new B ();
new B2 ();
}
}
|