You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceTypeGuard{guard: boolean;}functionisTypeGuard(value: any): value is TypeGuard{returnvalue.guard;}leta: {notGuard: boolean}|TypeGuard;if(isTypeGuard(a)){constb: TypeGuard=a;letc: TypeGuard(()=>c=a)();}
Expected behavior:
The guarded type should be guarded within any nested closures.
Actual behavior:
The guarded type is not guarded in any nested closures. This has previously been working correctly.
TypeScript Version:
nightly (1.9.0-dev.20160217)
Code
Expected behavior:
The guarded type should be guarded within any nested closures.
Actual behavior:
The guarded type is not guarded in any nested closures. This has previously been working correctly.
Example outputs...
This is impacting ReactiveX/rxjs#1697
cc @alexeagle
The text was updated successfully, but these errors were encountered: