Actually, iterating over an entity whose type is an unconstrained formal generic causes the same crash (i.e., it is not necessary that the formal generic be constrained).