Skip to content

Diagnose better error when using generic function by value #2170

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 9, 2021
Merged

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Dec 9, 2021

Passing a generic function by value previously diagnosed a mismatch in argument count, which was not very helpful. Now diagnoses that a type argument was expected, and that the expression does not compile to a value at runtime.

See #2081.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO dcodeIO merged commit a962528 into main Dec 9, 2021
@dcodeIO dcodeIO deleted the issue-2081 branch March 22, 2022 13:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant