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

Reflection doesn't provide a way to find out values of default arguments #6468

Open
scabug opened this issue Oct 3, 2012 · 6 comments
Open

Comments

@scabug
Copy link

scabug commented Oct 3, 2012

We could at least expose the defaultGetter method from NamesDefaults.scala: https://github.com/scala/scala/blob/f5357d98a2adfada4998fcdaea680ddc6d8460f8/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala#L424.

Not sure how invocations will work though, because they might need stuff from lexical scope.

@scabug
Copy link
Author

scabug commented Oct 3, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6468?orig=1
Reporter: @xeno-by

@scabug
Copy link
Author

scabug commented Dec 26, 2012

@scabug
Copy link
Author

scabug commented Jan 15, 2013

@xeno-by said:
Put this in TermSymbol.getter or create a new method?

@scabug
Copy link
Author

scabug commented Feb 4, 2013

@xeno-by said:
We don't have time for this in 2.10.1

@scabug
Copy link
Author

scabug commented Jun 5, 2013

@SethTisue
Copy link
Member

Scala 3 equivalent issue: scala/scala3#17893

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

3 participants