projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2333 from joelmartinez/docs-classic-fix
[mono.git]
/
mcs
/
tests
/
test-931.cs
1
using System;
2
3
class MainClass
4
{
5
public static implicit operator string (MainClass src)
6
{
7
return null;
8
}
9
10
public static int Main ()
11
{
12
var obj = new MainClass ();
13
var s = "x";
14
var res = (string) obj ?? s;
15
if (res != "x")
16
return 1;
17
18
return 0;
19
}
20
}