Fix reflect typeMembers to return all members#15033
Conversation
|
I've pushed a commit repairing Scaladoc tests |
500ce16 to
efc8081
Compare
Did not notice this commit and force pushed the fix I had. @pikinier20 is this the same fix that you did? |
Yes, it is. Sorry for messing up :) |
pikinier20
left a comment
There was a problem hiding this comment.
The changes in Scaladoc are fine. However, I'm not a person who can approve changes in compiler API.
|
Note that the other fixes in the documentation are in #15034 |
efc8081 to
60f46a6
Compare
| def memberType(name: String): Symbol = typeMember(name) | ||
| def typeMember(name: String): Symbol = | ||
| def memberType(name: String): Symbol = | ||
| self.unforcedDecls.find(sym => sym.name == name.toTypeName) |
There was a problem hiding this comment.
I guess this was present before, but any reason we use unforcedDecls here? That could also miss declarations.
There was a problem hiding this comment.
I do not belive there was a particular reason. Which method would you use instead?
ca79663 to
10289a9
Compare
Fixes #14902