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 special case to init checker to always allow certain methods #14352

Merged
merged 1 commit into from Feb 2, 2022

Conversation

Xavientois
Copy link
Contributor

Closes #14275

  • Treats mehtods ne, eq, isInstanceOf, and asInstanceOf as safe
    to call, regardless of initialization

Signed the CLA - @Xavientois

Review by @liufengyun

tests/init/pos/always-valid.scala Outdated Show resolved Hide resolved
@liufengyun
Copy link
Contributor

Nitpick: to keep the history clean, it's better to rebase instead of creating unnecessary merge commits.

@Xavientois Xavientois force-pushed the eq-ne-always-valid-init-check branch 3 times, most recently from deb85b7 to a3c21ae Compare February 2, 2022 13:53
Copy link
Contributor

@olhotak olhotak left a comment

Choose a reason for hiding this comment

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

LGTM, but remove the checkfile.

Closes scala#14275

- Treats mehtods `ne`, `eq`, `isInstanceOf`, and `asInstanceOf` as safe
  to call, regardless of initialization

Signed the CLA - @Xavientois

Review by @liufengyun
@olhotak olhotak merged commit 8bb2453 into scala:main Feb 2, 2022
@Xavientois Xavientois deleted the eq-ne-always-valid-init-check branch February 2, 2022 22:47
@Kordyjan Kordyjan added this to the 3.1.3 milestone Aug 1, 2023
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.

Strange warning with -Ysafe-init
4 participants