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

Try making the apparent type of unknown be unknown #47517

Closed
wants to merge 4 commits into from

Conversation

jakebailey
Copy link
Member

Test PR to show the effect of the change proposed in #47494.

Most of this is okay (especially the removal of errors complaining about specific fields), but there are a couple concerning things that I'll leave a comment on, specifically:

  • Type 'unknown' is not assignable to ... being printed twice
  • Missing toString on things.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jan 19, 2022
@@ -9,7 +9,7 @@ tests/cases/compiler/genericConditionalConstrainedToUnknownNotAssignableToConcre
Type 'unknown' is not assignable to type 'A'.
Type 'ReturnType<FunctionsObj<T>[string]>' is not assignable to type 'A'.
Type 'unknown' is not assignable to type 'A'.
Property 'x' is missing in type '{}' but required in type 'A'.
Type 'unknown' is not assignable to type 'A'.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's very odd that this prints out twice.

@ws-infrabot

This comment has been minimized.

1 similar comment
@ws-infrabot

This comment has been minimized.

@ws-infrabot

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants