Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sre] Emit a memberref token for fields,methods of a gtd
This can happen when emitting code like: ``` class Foo<T> { T elt; public T getter () { return elt; // ILGenerator.Emit (OpCodes.Ldfld, /*FieldBuilder of Foo::elt*/) }; } ``` the old incorrect code emitted a fielddef token for Foo::elt, but it should be a memberref for Foo<!0>::elt. Likewise, if we have ``` class Foo<T> { public T f () { /*...*/} public void g () { var x = f (); // ILGenerator.Emit (OpCodes.Call, /* MethodBuilder of Foo::f */) /*... */ } } ``` Fixes mono#6192 the old incorrect code would emit a fieldref token for Foo::f but it should be a memberref for Foo<!0>::f
- Loading branch information