Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@faddiv
Copy link
Contributor

@faddiv faddiv commented Nov 25, 2025

Fix name collision on inlined mapping

Description

This PR ensures that the inlined mapping in the projections doesn't cause parameter collision.

Fixes #2012

Checklist

  • The existing code style is followed
  • The commit message follows our guidelines
  • Performed a self-review of my code
  • Hard-to-understand areas of my code are commented
  • The documentation is updated (as applicable)
  • Unit tests are added/updated
  • Integration tests are added/updated (as applicable, especially if feature/bug depends on roslyn or framework version in use)

@latonz
Copy link
Contributor

latonz commented Dec 4, 2025

Mapperly usally works top to bottom. Here, the approach is inversed (the parameter names are reserved from the innermost mapping). I'd prefer doing it the other way around (that's what I tried): rewriting the inlined mapping with unique parameter names. That's actually also what we do for the source parameter.

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.

Lambda expression variable issue with x when comparing to source

2 participants