Skip to content

resolver: Kotlin stdlib built-ins on the untyped-receiver fallback (Part of #4991) - #6466

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4991-20261024T1329Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4991-20261024T1329Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Adds _BUILTIN_INSTANCE_METHODS_KOTLIN (String/CharSequence, collection/map, sequence/iterator, scope functions; free-function-style run/with/lazy left out) so an untyped non-this receiver call with a stdlib name resolves to the ambiguous receiver step, not file/import. Same mechanism as #4990 / #6412.

Checklist: done [c:b55118d1]

Class / Sibling gaps

Class: a call through an untyped, non-this receiver whose method name is a language built-in links confidently (file/import) to a same-named repo method in the _resolve_one fallback of gitgalaxy/core/call_resolver.py. Fixed by a per-language list in _BUILTIN_INSTANCE_METHODS.

Member (issue #4991) Status Evidence
TypeScript / JavaScript handled #4990
Java handled checked off on the issue
Python handled #6412 (checklist box c:b2ceb0a3 still open: whether calls_out_qualifiers already covers it)
Kotlin handled here _BUILTIN_INSTANCE_METHODS_KOTLIN, two new tests
C# (BCL), Ruby (core), PHP, Go missing other checklist boxes; each needs its own name list and a check that it reaches the fallback; no Level 2 reference for C#/Ruby
Scala, Groovy not examined share the JVM group in the resolver, not measured here, so no list added

Sibling 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-in save and this.get() stay confident). test_call_resolver.py + resolution gate pass; audit_check.py all clear; pr_gates.py --fast 7/7; crucible_check.py --update shows 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.py like PR #6456 (disjoint hunks).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 13:35
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 13:42
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit ac5b0f3 into main Oct 24, 2026
95 checks passed
@squid-protocol
squid-protocol deleted the churn/4991-20261024T1329Z branch October 24, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant