projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
[mono.git]
/
mcs
/
tests
/
gtest-614.cs
1
using System;
2
3
struct S
4
{
5
public static explicit operator int? (S? s)
6
{
7
throw new ApplicationException ();
8
}
9
10
public static implicit operator int (S? s)
11
{
12
return 2;
13
}
14
}
15
16
class C
17
{
18
public static int Main()
19
{
20
int? nn = 3;
21
S? s = new S ();
22
int? ret = s ?? nn;
23
if (ret != 2)
24
return 1;
25
26
return 0;
27
}
28
}