projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* ecore.cs (Expression.Error_ValueCannotBeConverted): Add special
[mono.git]
/
mcs
/
errors
/
gcs0403-2.cs
1
// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
\r
2
// Line: 8
\r
3
\r
4
struct S
\r
5
{
\r
6
public void Foo<T> () where T : struct
\r
7
{
\r
8
T t = null;
\r
9
}
\r
10
\r
11
static void Main ()
\r
12
{ }
\r
13
}
\r