[Mono-bugs] [Bug 62909][Wis] Changed - [GMCS]: rejects constraint with dependency an another constraint

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 8 Oct 2004 15:37:24 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by benmartin@fourthplanet.net.

http://bugzilla.ximian.com/show_bug.cgi?id=62909

--- shadow/62909	2004-09-19 20:33:20.000000000 -0400
+++ shadow/62909.tmp.3413	2004-10-08 15:37:24.000000000 -0400
@@ -36,6 +36,40 @@
 
 with the following error:
 cp_test5.cs(6) error CS0309: The type `T' must be convertible to
 `System.IComparable' in order to use it as parameter `T' in the generic
 type or method `A`1<T>'
 Compilation failed: 1 error(s), 0 warnings
+
+------- Additional Comments From benmartin@fourthplanet.net  2004-10-08 15:37 -------
+This no longer causes the above error, but instead crashes with the error:
+
+ALPHA SOFTWARE: Mono C# Compiler 1.1.1.0 for Generics
+ 
+Unhandled Exception: System.NullReferenceException: Object reference
+not set to
+an instance of an object
+in <0x00134> Mono.CSharp.GenericConstraints:get_IsReferenceType ()
+in <0x000a7> Mono.CSharp.Convert:ImplicitTypeParameterConversion
+(Mono.CSharp.Expression,System.Type)
+in <0x00045> Mono.CSharp.Convert:ImplicitReferenceConversionExists
+(Mono.CSharp.Expression,System.Type)
+in <0x00304> Mono.CSharp.Convert:ImplicitStandardConversionExists
+(Mono.CSharp.Expression,System.Type)
+in <0x0017e> Mono.CSharp.ConstructedType:CheckConstraint
+(Mono.CSharp.EmitContext,System.Type,Mono.CSharp.Expression,System.Type)
+in <0x004cb> Mono.CSharp.ConstructedType:CheckConstraints
+(Mono.CSharp.EmitContext,int)
+in <0x0014c> Mono.CSharp.ConstructedType:ResolveType
+(Mono.CSharp.EmitContext)
+in <0x00b4d> Mono.CSharp.Constraints:ResolveTypes
+(Mono.CSharp.EmitContext)
+in <0x002a6> Mono.CSharp.TypeParameter:DefineType
+(Mono.CSharp.EmitContext,System.Reflection.Emit.MethodBuilder,System.Reflection.MethodInfo,bool)
+in <0x00017> Mono.CSharp.TypeParameter:DefineType
+(Mono.CSharp.EmitContext)
+in <0x0063c> Mono.CSharp.TypeContainer:DefineType ()
+in <0x0042a> Mono.CSharp.RootContext:ResolveTree ()
+in <0x00c2e> Mono.CSharp.Driver:MainDriver (string[])
+in <0x0001f> Mono.CSharp.Driver:Main (string[])
+ 
+