Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why is Any_getClass polymorphic in Scala 3? #14860

Unanswered
bishabosha asked this question in Compiler internals Q&A
Discussion options

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

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /