Skip to content

Conversation

Guest0x0
Copy link
Contributor

@Guest0x0 Guest0x0 commented Mar 7, 2025

unqualified methods (declared with fn f(self : T, ..)) will be included in the toplevel scope of the package. If the package is @builtin, it means everyone can call the method unqualified, which is probably undesirable. So @builtin should not contain unqualified method.

This PR fixes several unqualified methods in @builtin and make them qualified (T::method_name)

@Guest0x0 Guest0x0 requested a review from bobzhang March 7, 2025 08:13
@coveralls
Copy link
Collaborator

coveralls commented Mar 7, 2025

Pull Request Test Coverage Report for Build 5578

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.548%

Totals Coverage Status
Change from base Build 5576: 0.0%
Covered Lines: 6011
Relevant Lines: 6495

💛 - Coveralls

@bobzhang bobzhang force-pushed the Guest0x0/no-unqualified-methods-in-builtin branch from 6545cd5 to ded2da2 Compare March 7, 2025 09:40
@bobzhang bobzhang enabled auto-merge (rebase) March 7, 2025 09:40
@bobzhang bobzhang merged commit 05735f0 into main Mar 7, 2025
12 checks passed
@bobzhang bobzhang deleted the Guest0x0/no-unqualified-methods-in-builtin branch March 7, 2025 09:46
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.

3 participants