Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix printing of Vararg on Julia 1.7 #262

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakobnissen
Copy link
Contributor

Recent versions of Julia has moved Vararg from being a Type to being its own thing. This means it will error if T is a vararg and you try to do isa to <: operations with it.
This caused an error, which is fixed here by explicitly testing if T is a Vararg.

Fixes #261

Note that THIS IS NOT TESTED! I couldn't figure out how to write a test for this.

@Roger-luo
Copy link
Collaborator

could you just copy-paste the example from that issue in the test? that should be sufficient as a test

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/ast/printing.jl 84.69% <80.00%> (+84.69%) ⬆️

... and 22 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

Recent versions of Julia has moved Vararg from being a Type to being its own
thing. This means it will error if T is a vararg and you try to do `isa` to `<:`
operations with it.
This caused an error, which is fixed here by explicitly testing if T is a Vararg.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Vararg does not work on recent Julia versions
2 participants