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
[bcl] Update BCL Linked Size
[mono-project.git]
/
mcs
/
tests
/
dtest-004.cs
blob
1b911447d47bffabc0fd2e9b51988287347c4c8e
1
// internal dynamic conversion tests
2
3
class
G
<
T
>
4
{
5
}
6
7
8
class
C
9
{
10
public static dynamic
Create
()
11
{
12
return
1
;
13
}
14
15
static void
M
<
T
> ()
16
{
17
dynamic
d
=
default
(
T
);
18
var
v
=
default
(
dynamic
);
19
}
20
21
public static int
Main
()
22
{
23
var
d
=
Create
();
24
d
.
ToString
();
25
26
M
<
int
> ();
27
M
<
C
> ();
28
29
G
<
object
>
v1
=
new
G
<
dynamic
>();
30
G
<
dynamic
>
v2
=
new
G
<
object
>();
31
return
0
;
32
}
33
}