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
TypeScript Version: 2.1.? / the one that comes with VS 2017 RC
Code
asyncfunctionbug(){letresponse: Response;try{response=awaitfetch("www.google.com");}finally{}if(response.ok)// <- error: Variable response is used before being assignedconsole.log("ok");}
Expected behavior: was compiling (and working) fine in TS 2.0
Actual behavior: Error: response is used before being assigned.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.? / the one that comes with VS 2017 RC
Code
Expected behavior: was compiling (and working) fine in TS 2.0
Actual behavior: Error:
response
is used before being assigned.The text was updated successfully, but these errors were encountered: