Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
317 B
C#

using System;
public class TS
{
public int? v {
get { return (int?) this; }
}
public static implicit operator int? (TS s)
{
return 5;
}
public static implicit operator TS (int? date)
{
return null;
}
public static int Main ()
{
var r = new TS ().v;
if (r != 5)
return 1;
return 0;
}
}