Skip to content

Conversation

@hamzaremmal
Copy link
Member

@hamzaremmal hamzaremmal self-assigned this Oct 7, 2025
@hamzaremmal hamzaremmal marked this pull request as ready for review October 7, 2025 18:58
@hamzaremmal hamzaremmal assigned sjrd and unassigned hamzaremmal Oct 7, 2025
@hamzaremmal hamzaremmal requested a review from sjrd October 7, 2025 18:59
if Feature.shouldBehaveAsScala2 && !mods.is(Abstract) && originalTparams.isEmpty && arity <= MaxImplementedFunctionArity then
val tpt = originalVparamss.head.map(_.tpt) :+ untpd.Ident(cdef.name)
val parent = appliedTypeTree(scalaRuntimeDot(s"AbstractFunction$arity".toTypeName), tpt)
companionDefs(parent, applyMeths ::: unapplyMeth :: toStringMeth :: companionMembers)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a change that library maintainers have had to make in user-space when upgrading from 2 to 3. We should do the same and change this in user-space.

@hamzaremmal
Copy link
Member Author

After second thoughts and discussing with @sjrd, we will migrate these changes in user-space.

@hamzaremmal hamzaremmal requested a review from a team as a code owner October 8, 2025 09:29
@hamzaremmal hamzaremmal requested a review from sjrd October 8, 2025 09:29
@hamzaremmal hamzaremmal merged commit 5b02216 into scala:main Oct 8, 2025
51 checks passed
@hamzaremmal hamzaremmal deleted the module-class-scala2 branch October 8, 2025 11:44
@WojciechMazur WojciechMazur added this to the 3.8.0 milestone Oct 28, 2025
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