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 · 5 comments

Comments

Projects
None yet
3 participants
@scabug
Copy link

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

This comment has been minimized.

Copy link
Author

commented Oct 3, 2012

@scabug

This comment has been minimized.

Copy link
Author

commented Jan 15, 2013

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

@scabug

This comment has been minimized.

Copy link
Author

commented Feb 4, 2013

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

@scabug scabug added the reflection label Apr 7, 2017

@SethTisue SethTisue added this to the Backlog milestone Mar 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.