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
2009-03-04 Astushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
gcs1720-2.cs
blob
bc9a4801c0f3b69b485c50cb9de12dc85127f636
1
// CS1720: Expression will always cause a `System.NullReferenceException'
2
// Line: 9
3
// Compiler options: -warnaserror -warn:1
4
5
public class
Tester
6
{
7
public static void
GenericClass
<
T
>(
T t
)
where T
:
class
8
{
9
string
s
=
default
(
T
).
ToString
();
10
}
11
}