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

Implicit parameters in function expressions can't specify type #3672

Closed
scabug opened this issue Jul 14, 2010 · 6 comments
Closed

Implicit parameters in function expressions can't specify type #3672

scabug opened this issue Jul 14, 2010 · 6 comments
Assignees

Comments

@scabug
Copy link

scabug commented Jul 14, 2010

This compiles:

def foo(f: Int => Int) = () ; foo { implicit x => x + 1 }

This does not:

def foo(f: Int => Int) = () ; foo { implicit x : Int => x + 1 }
error: '=>' expected but ':' found.
@scabug
Copy link
Author

scabug commented Jul 14, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3672?orig=1
Reporter: Bruce Mitchener (bruce)

@scabug
Copy link
Author

scabug commented Oct 16, 2010

@odersky said:
(In r23282) Closes #3672. Review by extempore.

@scabug
Copy link
Author

scabug commented Oct 16, 2010

@retronym said:
A spec update + test would be appreciated. We need to keep the parser in IntelliJ up to date.

@scabug
Copy link
Author

scabug commented Oct 16, 2010

@odersky said:
Yes, I am about to check a new version of the spec in, as well as a test.

@scabug
Copy link
Author

scabug commented Oct 16, 2010

@retronym said:
Thanks a lot, I've noted the required changes for IntelliJ: http://youtrack.jetbrains.net/issue/SCL-2441

@scabug scabug closed this as completed May 18, 2011
@SethTisue SethTisue changed the title Implict parameters in function expressions can't specify type Implicit parameters in function expressions can't specify type Mar 13, 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

No branches or pull requests

2 participants