How can I implement arbitrary traits with methods that return type members? #17397
Unanswered
cacapouh
asked this question in
Metaprogramming
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried the following implementation but it results in a compilation error:
In
newDeclarations
, callingSymbol.info
and replacing all type members contained in the return value ofSymbol.info
withTypeTree.ref(cls).tpe.select(typeMember)
should work.However, there are cases where the replacement does not work properly, as stated in the comment of the following implementation:
This problem is related to:
#11685
Beta Was this translation helpful? Give feedback.
All reactions