Skip to content

Emit ImplicitToStringCast in more places#5344

Merged
muglug merged 3 commits intovimeo:masterfrom
weirdan:more-implicit-to-string-cast
Mar 11, 2021
Merged

Emit ImplicitToStringCast in more places#5344
muglug merged 3 commits intovimeo:masterfrom
weirdan:more-implicit-to-string-cast

Conversation

@weirdan
Copy link
Copy Markdown
Collaborator

@weirdan weirdan commented Mar 8, 2021

Fixes #5320

to_string_cast is set on successful comparison, thus it needs to always bubble up (it will be ignored in UnionTypeComparator if some part does not match).

weirdan added 3 commits March 8, 2021 10:49
Fixes vimeo#5320

`to_string_cast` is set on successful comparison, thus it needs to
always bubble up (it will be ignored in UnionTypeComparator if some part
does not match).
@weirdan weirdan requested a review from muglug March 8, 2021 10:50
@orklah
Copy link
Copy Markdown
Collaborator

orklah commented Mar 8, 2021

Nice!

Does that solve #4235 (comment) too?

@weirdan
Copy link
Copy Markdown
Collaborator Author

weirdan commented Mar 8, 2021

It does, and I fixed property assignments in Psalm codebase, including the one you pointed out.

@orklah
Copy link
Copy Markdown
Collaborator

orklah commented Mar 8, 2021

Great! Thanks! You're on fire today :D

@muglug muglug merged commit 71a0457 into vimeo:master Mar 11, 2021
@muglug
Copy link
Copy Markdown
Collaborator

muglug commented Mar 11, 2021

Thanks!

This was referenced Mar 15, 2021
This was referenced Mar 17, 2021
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.

ImplicitToStringCast not emitted for arrays

3 participants