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

Add explicit tests for unconstrained type param not being assignable to {} and Record<string, any> #48421

Conversation

Andarist
Copy link
Contributor

This is a follow-up to #48366 .

The PR only mentions adjusted assignability rules for {} and I was wondering if this has affected Record<string, any> as well. So I've tried it out locally and it turns out that yeah - it did. Those types might be very similar for the compiler so maybe that's a "given" but for a layman like me - this wasn't that obvious.

cc @weswigham

@weswigham weswigham merged commit 3ec1b04 into microsoft:main Mar 25, 2022
@Andarist Andarist deleted the tests/strict-unbounded-generic-assignability branch March 25, 2022 13:00
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