Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5257: Support auto generic-tupling of parameters #5259

Merged
merged 3 commits into from
Nov 2, 2018

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Oct 15, 2018

Additions:

  • Recognise *: as an auto-tupleable type for function parameters
  • Desugar auto-tupled function parameters for a *: tuples using apply(N) method instead of _Ns

@nicolasstucki
Copy link
Contributor Author

Rebased and added regression test

@nicolasstucki
Copy link
Contributor Author

Rebased

@@ -23,6 +23,7 @@ i4947b
i5119
i5119b
i5188a
i5257.scala
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know what's failing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I remember correctly there was a match type that was not explicitly expanded in some part of the tree.

@OlivierBlanvillain OlivierBlanvillain merged commit cf60e58 into scala:master Nov 2, 2018
@OlivierBlanvillain OlivierBlanvillain deleted the fix-#5257 branch November 2, 2018 08:32
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 4, 2021
…patmat

This commit refactor the PR scala#5259 so that it will not impact pattern
matching code. Pattern matching code requires members `_N` for
patternMatcher phase to generate correct code.

scala#5259
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 4, 2021
…patmat

This commit refactor the PR scala#5259 so that it will not impact pattern
matching code. The phase patternMatcher requires members `_N` for to
generate correct code.

scala#5259
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 6, 2021
…patmat

This commit refactor the PR scala#5259 so that it will not impact pattern
matching code. The phase patternMatcher requires members `_N` for to
generate correct code.

scala#5259
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 6, 2021
…patmat

This commit refactor the PR scala#5259 so that it will not impact pattern
matching code. The phase patternMatcher requires members `_N` for to
generate correct code.

scala#5259
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 11, 2021
This commit refactor the PR scala#5259 so that it will not impact pattern
matching code.

scala#5259

- tests/pos/automatic-tupling-of-function-parameters.scala

  This test requires dealiasing.

- tests/run/function-arity.scala

  This test requires widen ExprType.
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 11, 2021
This commit refactor the PR scala#5259 so that it will not impact pattern
matching code.

scala#5259

- tests/pos/automatic-tupling-of-function-parameters.scala

  This test requires dealiasing.

- tests/run/function-arity.scala

  This test requires widen ExprType.
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 15, 2021
This commit refactor the PR scala#5259 so that it will not impact pattern
matching code.

scala#5259

- tests/pos/automatic-tupling-of-function-parameters.scala

  This test requires dealiasing.

- tests/run/function-arity.scala

  This test requires widen ExprType.
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 18, 2021
This commit refactor the PR scala#5259 so that it will not impact pattern
matching code.

scala#5259

- tests/pos/automatic-tupling-of-function-parameters.scala

  This test requires dealiasing.

- tests/run/function-arity.scala

  This test requires widen ExprType.
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.

2 participants