[ilasm] Side with parent declaration when deciding if a type is an enum or a value...
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 4 Mar 2016 06:40:33 +0000 (01:40 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Sat, 2 Jul 2016 00:08:28 +0000 (20:08 -0400)
commit90e7004a63fb88070f93361a4da6b6e1fd940e6e
tree401370ea790beb92e80571962693366ea22284bc
parent281fc599e307d506d1673ab2b0c10a3a4089a3df
[ilasm] Side with parent declaration when deciding if a type is an enum or a value type.

The conflict happens when a type is declared like this:

.class value private auto ansi serializable sealed foo extends [mscorlib]System.Enum

The value keyword would make it a value type and ignore the parent declaration.

.net ilasm favors the later, which makes more sense.
mcs/ilasm/codegen/TypeDef.cs