Why is Any_getClass polymorphic in Scala 3? #14860
Unanswered
bishabosha
asked this question in
Compiler internals Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
its a change that does show up in the API docs, but you may wonder why was it chosen?
def getClass[A >: this.type](): Class[? <: A]
#7345 says its to allow less special casing throughout the compiler.
Could have implications for cross compile / other tools like tasty-query, Scala 2 tasty reader
Beta Was this translation helpful? Give feedback.
All reactions