projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #600 from tr8dr/master
[mono.git]
/
mcs
/
tests
/
gtest-588.cs
1
using System;
2
3
struct S
4
{
5
public static implicit operator short? (S s)
6
{
7
return 0;
8
}
9
10
public static implicit operator short (S s)
11
{
12
throw new ApplicationException ();
13
}
14
}
15
16
class Program
17
{
18
public static int Main ()
19
{
20
S? s = null;
21
S? s2 = new S ();
22
23
long? i = s;
24
if (i != null)
25
return 1;
26
27
double? ui = s2;
28
if (ui == null)
29
return 2;
30
31
return 0;
32
}
33
}