repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
gcs0183-2.cs
blob
8af4d902a6e0610d55315c6223eb8f51fbbef008
1
// CS0183: The given expression is always of the provided (`T') type
2
// Line: 10
3
// Compiler options: -warnaserror -warn:1
4
5
class
X
6
{
7
static bool
Foo
<
T
> ()
where T
:
struct
8
{
9
T o
=
default
(
T
);
10
return
o
is
T
;
11
}
12
}