-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Matching on abstract tuples causes dotty to stackoverflow #8905
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
The input to parent = AppliedType(TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),module scala),module Tuple),type Concat),List(TypeRef(NoPrefix,type T1), TypeRef(NoPrefix,type T2)))
child = trait NonEmptyTuple It seems that |
OlivierBlanvillain
added a commit
to dotty-staging/dotty
that referenced
this issue
May 28, 2020
Because MatchAliases are bounds, it's unsafe to do a traversal that recursively inspects bounds. It's kind of a pit fall...
OlivierBlanvillain
added a commit
to dotty-staging/dotty
that referenced
this issue
May 28, 2020
I manually inspected all calls to loBound/hiBound and found another place in the compiler where they are use during a traversal. The added test case fails on master with a SO, just like scala#8905.
OlivierBlanvillain
added a commit
to dotty-staging/dotty
that referenced
this issue
May 29, 2020
I manually inspected all calls to loBound/hiBound and found another place in the compiler where they are use during a traversal. The added test case fails on master with a SO, just like scala#8905.
liufengyun
added a commit
that referenced
this issue
May 30, 2020
Fix #8905: break cycles in instantiateToSubType
smarter
pushed a commit
to dotty-staging/dotty
that referenced
this issue
May 30, 2020
Because MatchAliases are bounds, it's unsafe to do a traversal that recursively inspects bounds. It's kind of a pit fall...
smarter
pushed a commit
to dotty-staging/dotty
that referenced
this issue
May 30, 2020
I manually inspected all calls to loBound/hiBound and found another place in the compiler where they are use during a traversal. The added test case fails on master with a SO, just like scala#8905.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
Output
Expectation
Probably shouldn't stackoverflow.
The text was updated successfully, but these errors were encountered: