Skip to content

Do not use a Range as an argument to :ver - #6

Merged
dwarring merged 1 commit into
css-raku:masterfrom
ugexe:patch-1
Jul 21, 2026
Merged

Do not use a Range as an argument to :ver#6
dwarring merged 1 commit into
css-raku:masterfrom
ugexe:patch-1

Conversation

@ugexe

@ugexe ugexe commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Adverbs like :ver() are currently not respected on the legacy grammar, so the test being changed here isn't actually enforcing any version at all. In RakuAST require will respect :ver(...), but that results in an error when given a Range object. Maybe such Range objects will work in the future, but for now using a Version with + accomplishes the same thing while making it compatible with RakuAST.

Adverbs like `:ver()` are currently not respected on the legacy grammar, so the test being changed here isn't actually enforcing any version at all. In RakuAST `require` will respect `:ver(...)`, but that results in an error when given a Range object. Maybe such Range objects will work in the future, but for now using a Version with `+` accomplishes the same thing while making it compatible with RakuAST.
@ugexe

ugexe commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

ping @dwarring

@dwarring
dwarring merged commit 7b2f5d7 into css-raku:master Jul 21, 2026
0 of 2 checks passed
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.

2 participants