lampepfl / dotty-feature-requests

Historical feature requests. Please create new feature requests at https://github.com/lampepfl/dotty/discussions/new?category=feature-requests
31 stars 2 forks source link

Get runtime JVM class name out of TypeRepr #236

Closed scf37 closed 1 year ago

scf37 commented 3 years ago

TypeRepr.classSymbol.fullName does not always represent runtime class name as seen here https://github.com/lampepfl/dotty/issues/13321

Doing Class.forName(classSymbol.fullName.replace(".$", "$")) works but is fragile.