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

solves dotc assertion error on (non-sensical?) parameter type. #13769 #13830

Merged
merged 1 commit into from Oct 27, 2021
Merged

solves dotc assertion error on (non-sensical?) parameter type. #13769 #13830

merged 1 commit into from Oct 27, 2021

Conversation

SergioDSR
Copy link
Contributor

Solves issue 13769
#13769

The change was to introduce an additional check to convertToParam() in Parsers.scala to trigger a parsing error for the invalid code:

val tup = (1, "s")
val te = tup.map((x: _ <: Singleton) => List(x))

instead of generating a later type related error.

Done in the context of the Scala spree 26.10.2021 together with: Kackper Korban, Andrzej Ratajczak and Jiri Dutkevic.

@smarter smarter merged commit 0eb7e61 into scala:master Oct 27, 2021
@Kordyjan Kordyjan added this to the 3.1.2 milestone Aug 2, 2023
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.

None yet

3 participants