repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git]
/
mcs
/
errors
/
cs0019-59.cs
blob
72a7a202e309b91cf3af6b2076f75aaf7d86b589
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.04
f
;
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
}