-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Type narrowing doesn't work with mutable variables in closures #23776
Comments
Seems like it also breaks colorization. |
Duplicate of #9998 |
Indeed. On the colorization, the last if (process instanceof Coroutine) return this.register(
name,
{
init: state => state,
main: (param, state) =>
(process as Coroutine<R, R, P>)[Coroutine.port].send(param)
.then<Supervisor.Process.Result<R, S>>(({ value: reply, done }) =>
done
? void this.kill(name, undefined) ||
(process as Coroutine<R, R, P>).then<Supervisor.Process.Result<R, S>>(reply =>
[reply, state])
: [reply, state,]),
exit: reason => void process[Coroutine.terminator](reason),
},
state,
reason);
return super.register(name, process, state); https://github.com/falsandtru/spica/blob/v0.0.167/src/supervisor.es2018.ts#L29 |
@falsandtru What editor? I see colorized |
Hm, I'm using VSCode v1.22.2 on Win10. |
What's your color scheme? |
Dark (Visual Studio). |
Oh No! Please open and check https://github.com/falsandtru/spica/blob/v0.0.167/src/supervisor.es2018.ts#L29 via vscode! |
Looks like the error is only present in vscode non-insiders without the latest grammar installed. |
I see, I wait for the next release. Currently, this is not a serious problem for me. |
You can also open the extensions sidebar and search for "latest typescript and javascript grammar". |
Resolved, thanks for letting me know! |
Includes arguments.
TypeScript Version: 2.9.0-dev.201xxxxx
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: