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

SAM for subtypes of FunctionN #5357

Merged
merged 1 commit into from Aug 27, 2016
Merged

Conversation

SethTisue
Copy link
Member

@SethTisue SethTisue commented Aug 23, 2016

only exclude FunctionN types themselves from SAM, don't exclude their
subtypes; we want e.g.

trait B extends Function1[String, String]
(x => x) : B

to compile

reference: scala/scala-dev#206

@scala-jenkins scala-jenkins added this to the 2.12.1 milestone Aug 23, 2016
@SethTisue SethTisue modified the milestones: 2.12.0-RC1, 2.12.1 Aug 23, 2016
@SethTisue
Copy link
Member Author

RC1 target is tentative, we could postpone if this runs into trouble

@adriaanm
Copy link
Contributor

Test suite passing! Let's see what the community build says, and if ✅ , I say let's do it.

@SethTisue
Copy link
Member Author

@lrytz
Copy link
Member

lrytz commented Aug 24, 2016

✅ ❗

@lrytz
Copy link
Member

lrytz commented Aug 24, 2016

maybe also add a regression test?

@adriaanm
Copy link
Contributor

Yes, once this has a test, I say let's merge.

@SethTisue SethTisue self-assigned this Aug 26, 2016
only exclude FunctionN types themselves from SAM, don't exclude their
subtypes; we want e.g.
  trait T extends Function1[String, String]
  (x => x) : T
to compile

reference: scala/scala-dev#206
@SethTisue
Copy link
Member Author

@lrytz look good?

@lrytz
Copy link
Member

lrytz commented Aug 27, 2016

LGTM, yes, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants