Enums are classes that can be assigned to value types
authorMarcin Cieslak <saper@saper.info>
Sun, 14 Jun 2015 23:29:26 +0000 (23:29 +0000)
committerMarcin Cieslak <saper@saper.info>
Sun, 14 Jun 2015 23:58:09 +0000 (23:58 +0000)
Fixes:
https://bugzilla.xamarin.com/show_bug.cgi?id=29679

mono/metadata/metadata.c

index 696d48e781adff3e168e079440db275b3be65a9d..6d46ecf25a97325d707e95b3cfbf5345371446af 100644 (file)
@@ -3218,6 +3218,7 @@ compare_type_literals (int class_type, int type_type)
        case MONO_TYPE_R8:
        case MONO_TYPE_I:
        case MONO_TYPE_U:
+       case MONO_TYPE_CLASS:
                return TRUE;
        default:
                return FALSE;