Skip to content

PS: Fix toString on unknown static field access #202

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

Merged
merged 4 commits into from
Apr 18, 2025

Conversation

MathiasVP
Copy link
Collaborator

While debugging another problem that @chanel-y reported I noticed that the member expression [DateTime]::$x doesn't have a toString since the toString is defined in terms of $x being a constant string (which it clearly isn't in this case).

So when there's no constant string representing the field we just define toString to be ...

Commit-by-commit review recommended since I also did a autoformat in commit 1

@MathiasVP MathiasVP changed the title Fix to string on unknown static read PS: Fix toString on unknown static field access Apr 17, 2025
@chanel-y chanel-y merged commit 03bce1c into main Apr 18, 2025
3 checks passed
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