Merge pull request #15293 from lewing/wasm-clean
[mono-project.git] / mcs / tests / gtest-614.cs
blobd68193ad0bfb0aa9248d2f40cfc0a77293581651
1 using System;
3 struct S
5 public static explicit operator int? (S? s)
7 throw new ApplicationException ();
10 public static implicit operator int (S? s)
12 return 2;
16 class C
18 public static int Main()
20 int? nn = 3;
21 S? s = new S ();
22 int? ret = s ?? nn;
23 if (ret != 2)
24 return 1;
26 return 0;