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
Fixes the mono/tests/gc-graystack-stress test on Windows x64
[mono-project.git]
/
mcs
/
errors
/
cs0453-8.cs
blob
f94f320bb7505c456cc2a9f4a109be1ee0b4a678
1
// CS0453: The type `dynamic' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Tester.Foo<T>(T)'
2
// Line: 10
3
4
class
Tester
5
{
6
static void
Foo
<
T
> (
T t
)
where T
:
struct
7
{
8
}
9
10
public static int
Main
()
11
{
12
dynamic
d
=
1
;
13
Foo
<
dynamic
>(
d
);
14
return
0
;
15
}
16
}