rsdn/nemerle — pull request #317 by Sectoid (2012-03-20 17:50:45+00:00)
Title: Fix generic methods emit for value-type type-params

This patch fixes emition of generic methods which have type parameters with 'struct' constrain. Old implementation didn't emit 'System.ValueType' constrain.

Here is an example. This generic method signature got from C# code:

.method public static hidebysig
default valuetype [mscorlib]System.Nullable`1 Fail () cil managed

...and this -- from Nemerle:

.method public static hidebysig
default valuetype [mscorlib]System.Nullable`1 Fail () cil managed

See the difference is vs .