roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Function pointer types nested as type parameters do not encode dynamic correctly

Open 333fred opened this issue 5 years ago • 1 comments

Example:

unsafe class C<T, U>
{
    C<delegate*<object>[], dynamic> field;
}

This is not encoded correctly, and on decode the attribute data is thrown out and we treat the field as C<delegate*<object>[], object>.

333fred avatar May 11 '20 23:05 333fred

This issue is likely not limited to type arguments, but to any situation when there are more types to look at after a function pointer type. For example, when a function pointer type used inside another function pointer type.

AlekseyTs avatar May 12 '20 23:05 AlekseyTs