[Mono-bugs] [Bug 349190] gmcs doesn't like use of Extension Methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 19 14:29:37 EDT 2008


User msafar at novell.com added comment

Marek Safar <msafar at novell.com> changed:

           What    |Removed                                         |Added
          Component|C#                                              |generics
            Product|Mono: Compilers                                 |Mono: Runtime

--- Comment #4 from Marek Safar <msafar at novell.com>  2008-06-19 12:29:36 MDT ---
Compiler part is now fixed but SRE emits for some strange reason wrong "ldftn"
call signature.

Also this is not caught by Mono Verifier

This is EXPECTED NaturalSort<T>:

  IL_0000:  ldarg.0
  IL_0001:  ldnull
  IL_0002:  ldftn      !!0

This is ACTUAL:
  IL_0000:  ldarg.0
  IL_0001:  ldnull
  IL_0002:  ldftn      !!0 Mono.Rocks.IEnumerable::'<NaturalSort>m__2'(!!0)

Here is a log from gmcs where ldftn is emitted

IsGenericMethod: True
IsGenericMethodDefinition: True
GetType: System.Reflection.Emit.MethodBuilder

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list