[nem-bug] [Nemerle 0001046]: Nullables don't work for generic parameter constrained with struct.

feedback at nemerle.org feedback at nemerle.org
Sat Sep 1 12:04:14 CEST 2007


A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=1046> 
======================================================================
Reported By:                SergASh
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   1046
Category:                   Compiler
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             08-26-2007 23:29 CEST
Last Modified:              09-01-2007 12:04 CEST
======================================================================
Summary:                    Nullables don't work for generic parameter
constrained with struct.
Description: 
The following declaration 

class  Test[T1]
  where T1 : struct
{
  private mutable t1 : T1?;
}

produces next error

"typing constraint on T not satisfied, upon instantiation of
System.Nullable: System.Object is not a subtype of System.ValueType
[simple require]"

======================================================================

----------------------------------------------------------------------
 BOleg - 09-01-07 12:04 
----------------------------------------------------------------------
Fixed. Path attached in 1048 (http://nemerle.org/bugs/view.php?id=1048).

Issue History
Date Modified  Username       Field                    Change              
======================================================================
08-26-07 23:29 SergASh        New Issue                                    
09-01-07 12:04 BOleg          Note Added: 0001946                          
======================================================================




More information about the bugs mailing list