diff options
author | Marek Safar <marek.safar@gmail.com> | 2009-12-15 17:32:45 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2009-12-15 17:32:45 +0300 |
commit | b560e4f432390970a062e5f35b7788a03eb74243 (patch) | |
tree | ad57cb8027b2771335d36fd5f08d453316da8c8e /mcs/tests/test-737.cs | |
parent | 8ca1165fd674bb343c7ab19a5447818af683649f (diff) |
New tests.
svn path=/trunk/mcs/; revision=148480
Diffstat (limited to 'mcs/tests/test-737.cs')
-rw-r--r-- | mcs/tests/test-737.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/tests/test-737.cs b/mcs/tests/test-737.cs new file mode 100644 index 00000000000..548fc61e9a6 --- /dev/null +++ b/mcs/tests/test-737.cs @@ -0,0 +1,30 @@ +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; + } +} |