67cc8417df
Former-commit-id: 08ca4d6ded648b2ac2eb817c12d5723b52edbb16
46 lines
423 B
C#
46 lines
423 B
C#
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 ();
|
|
}
|
|
} |