[nem-bug] [Nemerle 0000995]: Error in constraint with "struct"
keyword and interface
feedback at nemerle.org
feedback at nemerle.org
Sat Apr 28 09:47:43 CEST 2007
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=995>
======================================================================
Reported By: Klapaucius
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 995
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 04-28-2007 09:47 CEST
Last Modified: 04-28-2007 09:47 CEST
======================================================================
Summary: Error in constraint with "struct" keyword and
interface
Description:
public interface IFoo[T]{}
public class Bar[T1, T2]
where T2 : struct, IFoo[T1] //error:
// the type `T2.896' must be a value type
// in order to use it as type parameter `T2' in Bar[T1.895, T2.896]
{}
It is a correct constraint in C#.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
04-28-07 09:47 Klapaucius New Issue
======================================================================
More information about the bugs
mailing list