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

Wrong linter warning for operation that calls operation #1661

Closed
msoeken opened this issue Jun 24, 2024 · 0 comments · Fixed by #1671
Closed

Wrong linter warning for operation that calls operation #1661

msoeken opened this issue Jun 24, 2024 · 0 comments · Fixed by #1671
Labels
bug Something isn't working needs triage

Comments

@msoeken
Copy link
Member

msoeken commented Jun 24, 2024

Describe the bug

An operation that does not manipulate any qubits directly inside the operation, but calls another operation that does, is suggested to be changed to a function, but it cannot.

To Reproduce

Q# playground sample

Expected behavior

No warning should be emitted.

@msoeken msoeken added bug Something isn't working needs triage labels Jun 24, 2024
github-merge-queue bot pushed a commit that referenced this issue Jun 26, 2024
Closes #1661. The lint wasn't recursing if a `Call` was not an
operation, therefore, ignoring the arguments of the `Call`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant