2003-02-12 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Wed, 12 Feb 2003 23:24:07 +0000 (23:24 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 12 Feb 2003 23:24:07 +0000 (23:24 -0000)
commitb56489551b9714264a3d3c05194915973a42df85
tree5340ab2c2f18ec5d052a66918f97ee81e3edcb62
parenta90a9d9f94ede3936055495377b806fecc58f2a5
2003-02-12  Miguel de Icaza  <miguel@ximian.com>

* ecore.cs (ImplicitReferenceConversion,
ImplicitReferenceConversionExists): enum_type has to be handled
like an object reference (implicit conversions exists from this to
object), but the regular IsClass and IsValueType tests will never
return true for this one.

Also we use TypeManager.IsValueType instead of type.IsValueType,
just for consistency with the rest of the code (this is only
needed if we ever use the construct exposed by test-180.cs inside
corlib, which we dont today).

svn path=/trunk/mcs/; revision=11533
mcs/mcs/ecore.cs
mcs/mcs/makefile
mcs/mcs/old-code.cs