Merge pull request #1066 from esdrubal/bug19313
[mono.git] / mcs / tests / test-903.cs
1 using System;
2
3 struct S
4 {
5 }
6
7 class C
8 {
9         public static implicit operator S (C c)
10         {
11                 return new S ();
12         }
13 }
14
15 class Program
16 {
17         static void Main ()
18         {
19                 C c = new C ();
20                 var x = c ?? new S ();
21         }
22 }