You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect IL is generated in the constructors for the type t. Notice below that type t is instantiated in correctly with type u.
This is also evident in the properties too:
Finally peverify confirms this too:
Warning: Method has multiple semantics. [token:0x06000003] [hr:0x80131299]
Warning: Method has multiple semantics. [token:0x06000004] [hr:0x80131299]
Error: Property has related method belonging to another type (method: 0x06000003; type: 0x02000003). [token:0x17000003] [hr:0x801312C5]
Error: Property has related method belonging to another type (method: 0x06000004; type: 0x02000003). [token:0x17000004] [hr:0x801312C5]
Ah yes, sorry missed that, I came to the same conclusion that the static linker somehow needed to duplicate the ILDefs etc to avoid the same reference being used.
I came across this while checking the intrinsic type extension patch #882. I initially though I had broken it :-)
Given the following generative provider:
And the following consumer:
Incorrect IL is generated in the constructors for the type
t
. Notice below that typet
is instantiated in correctly with typeu
.This is also evident in the properties too:
Finally peverify confirms this too:
Heres a gist of full il output: https://gist.github.com/7sharp9/79469a0861850791c6ec
Repo can be found here: https://github.com/7sharp9/IntrinsicTypeExtensions
The text was updated successfully, but these errors were encountered: