Skip to content

Reflection defines two extensions named memberType with different meaning #12299

Closed
@smarter

Description

@smarter

It's very confusing that:

  • tp.memberType(sym) gives you back the type of the member sym as seen from tp
  • but sym.memberType(name) gives you back the symbol of a type member named name

IMO, we should rename the method on symbol to typeMember instead (same with a bunch of other methods on member like memberField, etc).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions