Repository navigation
resolver: Kotlin stdlib built-ins on the untyped-receiver fallback (Part of #4991) - #6466
Merged
Merged
Conversation
…art of #4991) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 13:35
Contributor
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 24, 2026 13:42
Owner
Author
|
No description provided. |
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
_BUILTIN_INSTANCE_METHODS_KOTLIN(String/CharSequence, collection/map, sequence/iterator, scope functions; free-function-stylerun/with/lazyleft out) so an untyped non-thisreceiver call with a stdlib name resolves to the ambiguousreceiverstep, notfile/import. Same mechanism as #4990 / #6412.Checklist: done [c:b55118d1]
Class / Sibling gaps
Class: a call through an untyped, non-
thisreceiver whose method name is a language built-in links confidently (file/import) to a same-named repo method in the_resolve_onefallback ofgitgalaxy/core/call_resolver.py. Fixed by a per-language list in_BUILTIN_INSTANCE_METHODS.calls_out_qualifiersalready covers it)_BUILTIN_INSTANCE_METHODS_KOTLIN, two new testsSibling gaps: C#, Ruby, PHP, Go (above) are separate slices, not done here because each is a distinct language list needing its own measurement. Scala/Groovy need a check that they reach the fallback.
Tests: two new cases in
tests/core_engine/test_call_resolver.py(built-ins ambiguous per family; non-built-insaveandthis.get()stay confident).test_call_resolver.py+ resolution gate pass;audit_check.pyall clear;pr_gates.py --fast7/7;crucible_check.py --updateshows no fixture changes.Not measured: there is no Kotlin Level 2 reference, so no before/after against a compiler oracle.
Cross-repo: none. Touches
call_resolver.pylike PR #6456 (disjoint hunks).🤖 Generated with Claude Code