[runtime] Fix Empty generic enumerator equality
authorAlexander Kyte <alexmkyte@gmail.com>
Mon, 2 Oct 2017 18:59:16 +0000 (14:59 -0400)
committerMarek Safar <marek.safar@gmail.com>
Fri, 6 Oct 2017 09:35:17 +0000 (11:35 +0200)
On the CLR, two enumerators containing zero elements will
have reference equality if they are inflated with the same
generic type.

If comparing two enumerators which are not inflated (Array.Empty, for
instance), they are not equal when they contain zero elements.

This reference equality behavior is not compatible with treating
the enumerators as structs, as value types will not have reference
equality.


No differences found