projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated with review feedback.
[mono.git]
/
mcs
/
tests
/
gtest-524.cs
1
// Compiler options: -warnaserror
2
3
// No CS1720 warning
4
5
using System;
6
7
class C
8
{
9
static T M<T> () where T : struct
10
{
11
return ((Nullable<T>)null).GetValueOrDefault ();
12
}
13
14
public static int Main ()
15
{
16
if (M<int> () != 0)
17
return 1;
18
19
return 0;
20
}
21
}