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

Possible unbound type parameter false positive #295

Closed
densmojd opened this issue Aug 16, 2024 · 2 comments
Closed

Possible unbound type parameter false positive #295

densmojd opened this issue Aug 16, 2024 · 2 comments

Comments

@densmojd
Copy link

I'm attempting to concatenate a tuple of SVector into an SMatrix, and I'm getting a unbound type parameter error I can't fix. Here's an MWE (here I just use a matrix comprehension to make things simple):

function cat_svector(v::NTuple{M, SVector{N, Float64}}) where {N, M}

    return [v[j][i] for i in 1:N, j in 1:M]

end
# special case for when no arguments are provided
cat_svector() = error("no arguments provided")

The special case was attempt to avoid unbound type parameters when no arguments are provided, but that didn't fix the problem.

@lgoettgens
Copy link
Collaborator

I think this is a duplicate of #86.

@lgoettgens lgoettgens closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2024
@densmojd
Copy link
Author

FWIW, I still get the error if I remove cat_svector().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants