-
Notifications
You must be signed in to change notification settings - Fork 21
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
Failed to optimize a recursive call in tail position #9647
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9647?orig=1 |
@SethTisue said: |
@SethTisue said: val t: HList = x2.tail;
matchEnd5($iw.this.foo[HList](t)) so this looks like a pattern matcher issue — the transform the matcher does moves the recursive call to non-tail-position |
The following tail-recursive funciton
foo
fails to be optimized.Here is the REPL output:
The text was updated successfully, but these errors were encountered: