Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add printTypesAndErasure test main method to compare typer and erasure #13745

Merged

Conversation

bishabosha
Copy link
Member

@bishabosha bishabosha commented Oct 14, 2021

run in sbt with

scala3> scala3-compiler/Test/runMain
  dotty.tools.printTypesAndErasure
  "class Box { type X }"
  "method"
  "(b: Box)(x: b.X): List[b.X]"`

see output like

[info] running (fork) dotty.tools.printTypesAndErasure "class Box { type X }" method "(x: Box#X): List[Box#X]"
info @ typer   => (b: Box)(x: b.X): scala.collection.immutable.List[b.X]
info @ erasure => (b: Box, x: Object): scala.collection.immutable.List

@anatoliykmetyuk anatoliykmetyuk merged commit 688c2ca into scala:master Oct 18, 2021
@anatoliykmetyuk anatoliykmetyuk deleted the add-printtypesanderasure branch October 18, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants