Skip to content

Conversation

@ringabout
Copy link
Member

No description provided.

# Check if the ranges don't perfectly overlap
result = not isRangeSupertype(conf, f, a)
if a.kind == tyInt and f.sym != nil and (f.sym.name.s == "Positive" or
f.sym.name.s == "Natural"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you use this string-based approach, check that the owner has the sfSystemModule flag!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, in this case we need a separate warning for these, Natural in particular is easy to mess up because people don't realize it's affected by range issues and they try to use it unfortunately. It has crossed my mind that natural should simply be redefined as an int which would remove all these warnings.

Copilot AI review requested due to automatic review settings February 5, 2026 08:45

This comment was marked as outdated.

ringabout and others added 4 commits February 5, 2026 16:58
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ringabout ringabout requested a review from Copilot February 5, 2026 12:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ringabout and others added 2 commits February 5, 2026 20:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants