-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Test to close scala/bug#5075. #6366
Conversation
test/files/pos/t5075.scala
Outdated
|
||
function[PartialApply1Of2[Tuple2, Int]#Apply](param): Int //Compiles | ||
function(param) //Does not compile | ||
param: Int //Does not compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool that it compiles now! Suspect those comments are stale 😉
test/files/pos/t5075.scala
Outdated
trait PartialApply1Of2[T[_, _], A] { | ||
type Apply[B] = T[A, B] | ||
|
||
type Flip[B] = T[B, A] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was Flip
to be used for something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess I just forgot to minimize it away in 2011. But it's useful for your comment scala/bug#5075 (comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Blaisorblade I suspect that a modern minimization of 5075 would use Flip
instead, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, I already upvoted your comment! (Nitpick: I'd add testcases with Flip
in addition.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Echoing requested changes by other reviewers
I updated the test file. |
Fixed, most likely by the SI-2712 fix.