projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
test-450.cs
1
using System;
2
3
enum E : byte
4
{
5
V
6
}
7
8
class A
9
{
10
int value;
11
12
private A (int value)
13
{
14
this.value = value;
15
}
16
17
public static implicit operator byte (A a)
18
{
19
return 6;
20
}
21
22
public static implicit operator A (int a)
23
{
24
return new A (a);
25
}
26
27
public static int Main ()
28
{
29
var a = new A (0);
30
a++;
31
if (a.value != 7)
32
return 1;
33
34
var e = E.V;
35
e++;
36
37
if ((int) e != 1)
38
return 2;
39
40
return 0;
41
}
42
}