Skip to content

Fix infinite recursion in SeqCoordinateSpace.axis() - #1411

Open
rtyley wants to merge 1 commit into
typelevel:mainfrom
rtyley:fix-infinite-recursion-in-SeqCoordinateSpace-axis
Open

rtyley wants to merge 1 commit into
typelevel:mainfrom
rtyley:fix-infinite-recursion-in-SeqCoordinateSpace-axis

Conversation

@rtyley

@rtyley rtyley commented Aug 26, 2026 •

Copy link
Copy Markdown

Calling SeqCoordinateSpace.axis(i) with any valid value of i hangs indefinitely - a condition checks for i being incremented, but it isn't i being incremented - it's j.

The bug was introduced in PR #64 in February 2013 - this change adds a small test to ensure that SeqCoordinateSpace.axis() returns the expected basis vector, and doesn't hang indefinitely.

This bug was introduced in typelevel#64 in February 2013, and
has remained in place for the past 13 years!

This change adds a small test to ensure that `SeqCoordinateSpace.axis()` returns the
expected basis vector, and doesn't hang indefinitely.

typelevel#64 (review)

This branch has not been deployed

No deployments
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.

1 participant