projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixes too early optimization of binary &&/& bool constants. Fixes part of #15392
[mono.git]
/
mcs
/
errors
/
cs0019-59.cs
1
// CS0019: Operator `^' cannot be applied to operands of type `S2' and `float'
2
// Line: 9
3
4
public class Test
5
{
6
public static void Main()
7
{
8
S2 s2 = new S2 ();
9
int r = s2 ^ 5.04f;
10
}
11
}
12
13
struct S2
14
{
15
public static int operator ^ (double? p1, S2 s2)
16
{
17
return 1;
18
}
19
20
public static implicit operator int? (S2 s1)
21
{
22
return int.MinValue;
23
}
24
}