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

Improve REPL display of methods #10023

Closed
scabug opened this issue Nov 3, 2016 · 4 comments
Closed

Improve REPL display of methods #10023

scabug opened this issue Nov 3, 2016 · 4 comments

Comments

@scabug
Copy link

scabug commented Nov 3, 2016

The creation of a method in the REPL like e.g.

def foo(in: Int): String = ???

will result in an output like

foo: (in: Int)String

which is almost (but not quite!) valid Scala syntax and therefore rather confusing.

Instead the output should

  • valid scala syntax
  • and maybe a helpful message that and what happened.
@scabug
Copy link
Author

scabug commented Nov 3, 2016

Imported From: https://issues.scala-lang.org/browse/SI-10023?orig=1
Reporter: Raphael Bosshard (esarbe)
See #7960

@scabug
Copy link
Author

scabug commented Nov 3, 2016

@SethTisue said (edited on Nov 4, 2016 1:26:01 PM UTC):
http://www.scala-lang.org/files/archive/spec/2.11/03-types.html#method-types

@scabug
Copy link
Author

scabug commented Nov 3, 2016

@SethTisue said:
related: #7960. someone might like to tackle both at the same time

@SethTisue
Copy link
Member

let's consolidate under #10024

@SethTisue SethTisue removed this from the Backlog milestone Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants