[nem-bug] [Nemerle 0000778]: Record macro & field init

feedback at nemerle.org feedback at nemerle.org
Tue Apr 10 21:26:28 CEST 2007


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=778> 
======================================================================
Reported By:                VladD2
Assigned To:                divan
======================================================================
Project:                    Nemerle
Issue ID:                   778
Category:                   The Macro Library
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-21-2006 17:07 CEST
Last Modified:              04-10-2007 21:26 CEST
======================================================================
Summary:                    Record macro & field init
Description: 
using Nemerle.Collections;

[Record(Exclude = [VisitedObjects])]
public class RelocationInfo
{
  public VisitedObjects : Hashtable[object, byte] = Hashtable();
  public FileIndex      : int;
  public Line           : int;
  public Char           : int;
  public LineOffset     : int;
  public CharOffset     : int;
}

def info = RelocationInfo(1, 2, 3, 4, 5);
info.VisitedObjects.Add("test", 0); // NullReferenceException !!!
======================================================================

----------------------------------------------------------------------
 divan - 04-10-07 21:26 
----------------------------------------------------------------------
Fixed on trunk r7588.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
10-21-06 17:07 VladD2         New Issue                                    
04-10-07 21:26 divan          Note Added: 0001840                          
04-10-07 21:26 divan          Assigned To               => divan           
04-10-07 21:26 divan          Status                   new => resolved     
04-10-07 21:26 divan          Resolution               open => fixed       
04-10-07 21:26 divan          Description Updated                          
======================================================================




More information about the bugs mailing list