Skip to content

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

[BUG] Vararg does not work on recent Julia versions

2 participants