Skip to content

Autoimport not working correctly after yield keyword #36933

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

Closed
SantoJambit opened this issue Feb 21, 2020 · 0 comments · Fixed by #37609
Closed

Autoimport not working correctly after yield keyword #36933

SantoJambit opened this issue Feb 21, 2020 · 0 comments · Fixed by #37609
Assignees
Labels
Bug A bug in TypeScript Domain: Auto-import Fix Available A PR has been opened for this issue

Comments

@SantoJambit
Copy link

TypeScript Version: 3.9.0-dev.20200220

Search Terms:
yield in combination with looking for import in the title.

Code

import { call } from 'redux-saga/effects';

export function* test() {
  select(); // works
  const token = yield select(() => 0); // doesn't work
  yield call((a: string) => a, "");
}

Expected behavior:

Auto import should work

Actual behavior:

Auto import only works when no yield is in front of the statement.

Playground Link: https://codesandbox.io/s/affectionate-khorana-t6e9h
GitHub Repo: https://github.com/SantoJambit/yield-autoimport-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Auto-import Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants