This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
How inference widens literals to primitives by default and when annotations preserve the narrow literal type you need.
You've completed the free preview. Subscribe to unlock every lesson in every course.