Adjusted codegen for disposal of iterators to use constrained call with type parameters.
Even though there is no semantical difference between box/callvirt and constrained/callvirt here, we do not want to cause unnecessary boxing. Compiler was handling this case correctly for structs, but missed the case of generic type parameters. (old compiler did use constrained with generic type parameters as well) Fixes #2111
Showing
想要评论请 注册 或 登录