You've already forked linux-packaging-mono
Imported Upstream version 4.4.0.142
Former-commit-id: 08ca4d6ded648b2ac2eb817c12d5723b52edbb16
This commit is contained in:
46
mcs/tests/dtest-064.cs
Normal file
46
mcs/tests/dtest-064.cs
Normal file
@@ -0,0 +1,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 ();
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
de9fea39fc570d60a08eeeba6e5eef06352b9197
|
||||
d7429bd8b329499d480f33072157e4c6b7cde1d2
|
||||
Reference in New Issue
Block a user