a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
11 lines
216 B
C#
11 lines
216 B
C#
// CS0555: User-defined operator cannot take an object of the enclosing type and convert to an object of the enclosing type
|
|
// Line: 6
|
|
|
|
struct S
|
|
{
|
|
public static implicit operator S (S? s)
|
|
{
|
|
return new S ();
|
|
}
|
|
}
|