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 findFunctionType for OrTypes #15478

Merged
merged 4 commits into from
Jun 30, 2022
Merged

Fix findFunctionType for OrTypes #15478

merged 4 commits into from
Jun 30, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 19, 2022

Restore funtionality that was dropped in 6ac8b47

Fixes #15460

Restore funtionality that was dropped in 6ac8b47

Fixes scala#15460
@odersky odersky marked this pull request as ready for review June 19, 2022 20:37
@som-snytt
Copy link
Contributor

 Wrong number of errors encountered when compiling out/compileNeg/neg/i11694
expected: 4, actual: 6
Unfulfilled expectations:
Unexpected errors:
tests/neg/i11694.scala:8
tests/neg/i11694.scala:9
-> following the errors:
 at 8: Missing parameter type
I could not infer the type of the parameter x.
 at 9: Missing parameter type
I could not infer the type of the parameter x.
 at 16: Missing parameter type
I could not infer the type of the parameter x.
 at 17: Missing parameter type
I could not infer the type of the parameter x.
 at 18: Missing parameter type
I could not infer the type of the parameter x.
 at 19: Found:    Int => Int
Required: (Int => Int) & (Int => Int) & Unit

@odersky odersky requested a review from smarter June 19, 2022 21:23
@smarter smarter merged commit b34ad70 into scala:main Jun 30, 2022
@smarter smarter deleted the fix-15460 branch June 30, 2022 13:31
@Kordyjan Kordyjan added this to the 3.2.1 milestone Aug 1, 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.

Union inference regression in 3.1.2
6 participants