projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #1066 from esdrubal/bug19313
[mono.git]
/
mcs
/
errors
/
cs0429-5.cs
1
// CS0429: Unreachable expression code detected
2
// Line: 24
3
// Compiler options: -warnaserror
4
5
using System;
6
7
struct S
8
{
9
}
10
11
class C
12
{
13
public static implicit operator S (C c)
14
{
15
return new S ();
16
}
17
}
18
19
class Program
20
{
21
static void Main ()
22
{
23
C c = new C ();
24
Console.WriteLine (c ?? new S ());
25
}
26
}