Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-467.cs
1 using System;
2
3 struct S
4 {
5         public static int Main ()
6         {
7                 S? s = null;
8                 A a = s;
9                 B b = (B) s;
10                 return 0;
11         }
12 }
13
14 class A
15 {
16         public static implicit operator A (S x)
17         {
18                 return new B ();
19         }
20 }
21
22 class B : A
23 {
24 }