Can someone explain me, why typescript thinks it knows that myClass.prop in the last line is EnumA.Y? I would think it should always be EnumA
myClass.prop
EnumA.Y
EnumA