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

Better diagnostics for compile-time errors #227

Closed
Iltotore opened this issue Mar 7, 2024 · 0 comments · Fixed by #239
Closed

Better diagnostics for compile-time errors #227

Iltotore opened this issue Mar 7, 2024 · 0 comments · Fixed by #239
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Iltotore
Copy link
Owner

Iltotore commented Mar 7, 2024

When a compile-time error occurs due to the value to refine not being evaluable at compile-time, the message can be quite confusing for newcomers. It would be useful to detect some easy mistakes (such as forgetting an inline) when such error occurs and provide a better message accordingly.

Example:

val notInlined: Int = 5
val pos: Int :| Positive = notInlined //`notInlined` is not a non-inlined variable. You need to make it `inline` in order to check it at compile-time etc.

Errors worth detecting are:

@Iltotore Iltotore added the enhancement New feature or request label Mar 7, 2024
@Iltotore Iltotore added this to the 2.5.1 milestone Apr 26, 2024
@Iltotore Iltotore self-assigned this May 4, 2024
Iltotore added a commit that referenced this issue Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant