projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
SqlBulkCopy Implementation
[mono.git]
/
mcs
/
tests
/
test-869.cs
1
using System;
2
3
public class C
4
{
5
public static readonly C Token = new C ();
6
7
public static C operator & (C set, E value)
8
{
9
return Token;
10
}
11
12
public static implicit operator E (C c)
13
{
14
throw new ApplicationException ();
15
}
16
}
17
18
public enum E
19
{
20
Item = 2
21
}
22
23
class FooClass
24
{
25
public static int Main ()
26
{
27
C m = new C ();
28
var x = E.Item;
29
var res = m & x;
30
if (res != C.Token)
31
return 1;
32
33
res = m & E.Item;
34
if (res != C.Token)
35
return 2;
36
37
return 0;
38
}
39
}