1 /* This class works fine */
6 public double this[int i
, int j
] {
14 public Works(double val
)
19 /* Same code as struct breaks */
21 public struct Breaks
{
25 public double this[int i
, int j
] {
33 public Breaks(double val
)
40 public static void Main(string[] args
)
44 System
.Console
.WriteLine("This works");
46 Works w
= new Works(3.0);
50 System
.Console
.WriteLine("This breaks");
52 Breaks b
= new Breaks(3.0);