Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

31 lines
355 B
C#

using System;
public struct Breaks
{
private double val;
public double this[int i, int j]
{
get { return val; }
set { val = value; }
}
public Breaks (double val)
{
this.val = val;
}
}
public class Tester
{
public static int Main ()
{
Breaks b = new Breaks (3.0);
b[0, 0] += 3.0;
if (b[0, 0] != 6.0)
return 1;
return 0;
}
}