Skip to content

Deprecation when inferring implicit from non-accessible companion#25516

Open
lrytz wants to merge 1 commit intoscala:mainfrom
lrytz:i25347-depr
Open

Deprecation when inferring implicit from non-accessible companion#25516
lrytz wants to merge 1 commit intoscala:mainfrom
lrytz:i25347-depr

Conversation

@lrytz
Copy link
Member

@lrytz lrytz commented Mar 13, 2026

Implicits found in the companion object of a type should not be inferred if the companion object is not accessible.

Deprecation as a first step before actually changing implicit inference.

Ref #25347

The PR to change inference is #25367

How much have your relied on LLM-based tools in this contribution?

I asked it to turn my existing PR into a deprecation and cleaned it up manually. It wrote the test case, I verified it works by removing // warn and adding an excess // warn.

Implicits found in the companion object of a type should not
be inferred if the companion object is not accessible.

Deprecation as a first step before actually changing implicit
inference.
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.

1 participant