Skip to content

chore: fix parameterless calls to functions #23204

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 2 commits into from
May 20, 2025

Conversation

hamzaremmal
Copy link
Member

Changes to parameterless/empty parameter list such that the code follows the specification.

NOTE: This code shouldn't have compiled in the first place. I'm raising an issue as soon as I finish what I'm focusing on.

@hamzaremmal hamzaremmal requested a review from sjrd May 20, 2025 14:37
@hamzaremmal hamzaremmal changed the title chore: fix type of some methods of Iterator chore: fix parameterless calls to functions May 20, 2025
@@ -245,7 +245,7 @@ class SettingsTests {
assertNotEquals(file1StateBefore, String(Files.readAllBytes(file1)))
assertEquals(file2StateBefore, String(Files.readAllBytes(file2)))

}(Files.deleteIfExists(_), Files.deleteIfExists(_))
}(using Files.deleteIfExists(_), Files.deleteIfExists(_))
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a warning, but we do not enable -Werror in the test. Unfortunately, this will change from implicit params to contextual params with the new library. Hence, I'm anticipating this error and I'm fixing it here.

@hamzaremmal hamzaremmal enabled auto-merge May 20, 2025 14:42
@hamzaremmal hamzaremmal merged commit baac46c into scala:main May 20, 2025
28 checks passed
@hamzaremmal hamzaremmal deleted the drop-illegal-code branch May 20, 2025 17:39
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