[nem-bug] [Nemerle 0001020]: NullReferenceException in "is" matching operator

feedback at nemerle.org feedback at nemerle.org
Sat May 26 12:39:12 CEST 2007


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=1020> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   1020
Category:                   Code Completion Engine
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             05-26-2007 12:39 CEST
Last Modified:              05-26-2007 12:39 CEST
======================================================================
Summary:                    NullReferenceException in "is" matching operator
Description: 
If try match nulled variable whose type is "variant option type"
NullReferenceException throw:

using System.Console;
using Nemerle.Utility;

variant Test
{
  | A
  | B { next : Test; }
}

module Program
{
  Main() : void
  {
    def x : Test.B = null;
    WriteLine(x is Test.B(Test.A)); // NullReferenceException 
  }
}
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
05-26-07 12:39 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list