projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
gtest-452.cs
1
using System;
2
3
public class Test
4
{
5
public static int Main ()
6
{
7
S mc = new S ();
8
float? f = mc;
9
if (f != 5)
10
return 1;
11
12
return 0;
13
}
14
}
15
16
struct S
17
{
18
public static implicit operator float (S p1)
19
{
20
throw new ApplicationException ("should not be called");
21
}
22
23
public static implicit operator float? (S p1)
24
{
25
return 5;
26
}
27
}