Skip to content

Mark parameters that have a default argument as = ... - #159

Open
rochala wants to merge 2 commits into
mainfrom
default-param-markers
Open

Mark parameters that have a default argument as = ...#159
rochala wants to merge 2 commits into
mainfrom
default-param-markers

Conversation

@rochala

@rochala rochala commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Default-arg presence is in every Scala 2 pickle and TASTy file but was never read: the printer worked from the MethodType alone, which has no param symbols. Walk paramSymss alongside the type so isParamWithDefault is available per clause.

rochala and others added 2 commits September 2, 2026 23:21
Default-arg presence is in every Scala 2 pickle and TASTy file but was never
read: the printer worked from the MethodType alone, which has no param symbols.
Walk paramSymss alongside the type so isParamWithDefault is available per clause.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
TASTy does not flag `m$default$N` synthetic the way Scala 2 pickles do, so
every Scala 3 method with defaults listed its getters as extra members. The
default is already visible as `= ...` on the parameter.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@rochala
rochala force-pushed the default-param-markers branch from 5406c54 to f68d7c4 Compare September 2, 2026 21:52
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