Ideas around anonymous enum types

One option is to built on top of generalized type ascription to solve it: