We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4da9d commit 7768bb7Copy full SHA for 7768bb7
_overviews/reflection/overview.md
@@ -171,7 +171,7 @@ which makes all classes and types available that are loaded by the classloader
171
that also loaded the class of `p` (`Purchase`), which we need in order to
172
access member `shipped`.
173
174
- scala> val shippingTermSymb = ru.typeOf[Purchase].decls(ru.TermName("shipped")).asTerm
+ scala> val shippingTermSymb = ru.typeOf[Purchase].declaration(ru.TermName("shipped")).asTerm
175
shippingTermSymb: scala.reflect.runtime.universe.TermSymbol = method shipped
176
177
We now look up the declaration of the `shipped` field, which gives us a
0 commit comments