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

Add validation of left side of where clause. #5113

Closed
csyonghe opened this issue Sep 19, 2024 · 0 comments · Fixed by #5112
Closed

Add validation of left side of where clause. #5113

csyonghe opened this issue Sep 19, 2024 · 0 comments · Fixed by #5112
Assignees
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang

Comments

@csyonghe
Copy link
Collaborator

After adding where clause, it is now possible for user to write void foo<T>() where int : Bar{} which doesn't make sense.

We need to add a check to guarantee that the left hand side of the where clause is dependent on at least one generic type parameter.

@csyonghe csyonghe self-assigned this Sep 19, 2024
@csyonghe csyonghe added the goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang label Sep 19, 2024
@csyonghe csyonghe added this to the Q3 2024 (Summer) milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant