rsdn/nemerle — Issue #277: InvalidProgramException during += operator on mutable struct field in Release
Author: CodingUnit
Created: 2012-02-01 18:06:24+00:00
State: open

This code makes IPE exception in runtime during code execute with Release compilation:

```nemerle
using Nemerle;
using System.Console;

public struct InnerDbRoot
{
public mutable d_new : int;
}

public class Dbx
{
public mutable root : InnerDbRoot;

public calc_alloc() : void
{
root.d_new += 5; //Exception there is!
}
}

module Test
{

Main() : void
{
def d = Dbx();

d.calc_alloc();
WriteLine(d.root.d_new);
_ = ReadLine();
}
}
```