-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Suspicious always-false comparison in TailRec related to super calls #5163
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
Labels
Comments
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 26, 2018
…rgeting a supertype
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 26, 2018
…rgeting a supertype
Was also reported in #4459 |
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 1, 2018
…rgeting a supertype
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 1, 2018
…rgeting a supertype
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 5, 2018
…rgeting a supertype
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 8, 2018
…rgeting a supertype
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 6, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 6, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 7, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 8, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 8, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 8, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 8, 2018
allanrenucci
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 8, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TailRec
has a suspicious comparison(method.name eq sym)
athttps://github.com/lampepfl/dotty/blob/561c06a4c93e713ba7c7892e92cd9e5fa964ed9b/compiler/src/dotty/tools/dotc/transform/TailRec.scala#L275
which should always be false because it compares a
Name
to aSymbol
. This suggests that the test is bogus, and should be investigated.There's supposed to be a test for this in
tests/neg-tailcall/tailrec-2.scala
, as evidenced by itscheck
file. However, this source file fails to parse:The text was updated successfully, but these errors were encountered: