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

Fast check unable to infer type from return expression #365

Open
marvinhagemeister opened this issue Apr 7, 2024 · 1 comment
Open

Fast check unable to infer type from return expression #365

marvinhagemeister opened this issue Apr 7, 2024 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@marvinhagemeister
Copy link
Contributor

These cases are trivial to detect based on the literal of the return expression. We currently fail all of them with a "missing retunr type" error whereas we be able to detect all of these.

export function strReturn() {
  return "foo";
}

export async function asyncStrReturn() {
  return "foo";
}

export function numReturn() {
  return 2;
}

export async function asyncNumReturn() {
  return 2;
}
@lucacasonato
Copy link
Member

denoland/deno_graph#459

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Needs Plan
Development

No branches or pull requests

3 participants