[svn] r7786: nemerle/trunk/ncc/testsuite/negative/where-constraints2.n

nazgul svnadmin at nemerle.org
Wed Sep 5 12:22:38 CEST 2007


Log:
Fix checking of generic constraints - bugs 1048 and 1046. Patch by BOleg.

Author: nazgul
Date: Wed Sep  5 12:22:37 2007
New Revision: 7786

Added:
   nemerle/trunk/ncc/testsuite/negative/where-constraints2.n   (contents, props changed)

Added: nemerle/trunk/ncc/testsuite/negative/where-constraints2.n
==============================================================================
--- (empty file)
+++ nemerle/trunk/ncc/testsuite/negative/where-constraints2.n	Wed Sep  5 12:22:37 2007
@@ -0,0 +1,11 @@
+namespace Bug1048 {
+using System;
+
+class RefTypeA {}
+class RefTypeB {}
+
+struct StructType {}
+
+class Test4[T1] where T1 : class, StructType {} // E: the type .* must be a reference type in order to use it as type parameter
+
+}



More information about the svn mailing list