projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bump API snapshot submodule
[mono.git]
/
mcs
/
errors
/
cs1728.cs
1
// CS1728: Cannot create delegate from method `int?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
2
// Line: 14
3
4
using System;
5
6
class C
7
{
8
delegate int Test ();
9
event Test MyEvent;
10
11
void Error ()
12
{
13
int? i = 0;
14
MyEvent += new Test (i.GetValueOrDefault);
15
}
16
}