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 reflect.LambdaType type test #16972

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Conversation

nicolasstucki
Copy link
Contributor

Fixes #16961

@nicolasstucki nicolasstucki self-assigned this Feb 20, 2023
case ParamRef(m: MethodType, i) => tpe(m.paramNames(i)).l ++ plain(".type").l

case ParamRef(binder: LambdaType, i) => tpe(binder.paramNames(i)).l
Copy link
Contributor Author

Choose a reason for hiding this comment

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

case ParamRef(TypeLambda(names, _, _), i) was accidentally matching TypeLambda and PolyType here. Replaced with LambdaType that matches TypeLambda, PolyType, and MethodType.

@nicolasstucki nicolasstucki marked this pull request as ready for review February 21, 2023 13:51
@nicolasstucki nicolasstucki removed their assignment Feb 21, 2023
@smarter smarter merged commit ab19081 into scala:main Feb 22, 2023
@smarter smarter deleted the fix-16961 branch February 22, 2023 15:17
@Kordyjan Kordyjan added this to the 3.3.1 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.

Quotes#PolyType type-tests as Quotes#TypeLambda
3 participants