projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-07-27 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-737.cs
1
using System;
2
3
public struct Breaks
4
{
5
private double val;
6
7
public double this[int i, int j]
8
{
9
get { return val; }
10
set { val = value; }
11
}
12
13
public Breaks (double val)
14
{
15
this.val = val;
16
}
17
}
18
19
public class Tester
20
{
21
public static int Main ()
22
{
23
Breaks b = new Breaks (3.0);
24
b[0, 0] += 3.0;
25
if (b[0, 0] != 6.0)
26
return 1;
27
28
return 0;
29
}
30
}