"asSeenFrom" in Scala 3 #14957
Unanswered
xuwei-k
asked this question in
Metaprogramming
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need
asSeenFrom
method similar to Scala 2 reflection API. but I could not found in Scala 3 API.https://github.com/scala/scala/blob/18ce8d410b57f30f4161896b49b03d2d3e7b0401/src/reflect/scala/reflect/api/Types.scala#L246
dotty.tools.dotc.core.TypeOps
hasasSeenFrom
but I think we can not use that from quotes API.https://github.com/lampepfl/dotty/blob/53f5531e7e31eca02b3db158c8c384e713b4542a/compiler/src/dotty/tools/dotc/core/TypeOps.scala#L30
Is there more better solution to avoid compiler internal api.
please see following example.
xuwei-k/Scala-asSeenFrom@8300806
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions