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

25 lines
350 B
C#

// CS0019: Operator `^' cannot be applied to operands of type `S2' and `float'
// Line: 9
public class Test
{
public static void Main()
{
S2 s2 = new S2 ();
int r = s2 ^ 5.04f;
}
}
struct S2
{
public static int operator ^ (double? p1, S2 s2)
{
return 1;
}
public static implicit operator int? (S2 s1)
{
return int.MinValue;
}
}