Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(📚) Update comment in Literal example to explain why the redundant overload is needed #14765

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KotlinIsland
Copy link
Contributor

@KotlinIsland KotlinIsland commented Feb 23, 2023

This example is problematic, the wording indicates that there is some difference between Literal[True, False] and bool, and that all other values ("normal bools" instead of "literal bools"), need to be captured in their own case.

@KotlinIsland
Copy link
Contributor Author

KotlinIsland commented Feb 24, 2023

@JelleZijlstra Do you think this is a good one? This example has caused confusion about the nature of Literal types, 'equal to a primitive value' vs 'literally denoted value'.

@JelleZijlstra
Copy link
Member

I'm not convinced this PR is correct but I don't have time or interest in discussing this in detail, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants