Skip to content

Add test for issue #17231 #17300

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 1 commit into from
Apr 18, 2023
Merged

Add test for issue #17231 #17300

merged 1 commit into from
Apr 18, 2023

Conversation

Sporarum
Copy link
Contributor

No description provided.

@Sporarum Sporarum linked an issue Apr 18, 2023 that may be closed by this pull request
@Sporarum Sporarum requested a review from mbovel April 18, 2023 10:50
@@ -0,0 +1,2 @@
scala> summon[ValueOf["a"]]
val res0: ValueOf["a"] = scala.ValueOf@61
Copy link
Contributor

Choose a reason for hiding this comment

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

This toString uses the hash. This test will not be stable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I looked at the neighboring i15493 which also had hashes, so I assumed it would be fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How do you advise I proceed ?

Copy link
Member

Choose a reason for hiding this comment

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

The hash of ValueOf is of its underlying type, String, which is of the content. "a" is hex 0x61, which isn't going to change. So this is fine.

@Sporarum Sporarum enabled auto-merge April 18, 2023 11:24
@Sporarum Sporarum merged commit ef382de into scala:main Apr 18, 2023
@Sporarum Sporarum deleted the fix-i17231 branch April 18, 2023 12: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.

repl crash ClassNotFoundException: ValueOf
3 participants