blob: 93eeca1a986b75f8db45c58cacc354bd0a8f6b8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// CS0266: Cannot implicitly convert type `S?' to `A'. An explicit conversion exists (are you missing a cast?)
// Line: 9
struct S
{
public static int Main ()
{
S? s = null;
A a = s;
return 0;
}
}
struct A
{
public static implicit operator A (S x)
{
return new A ();
}
}
|