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
The problem is that we can't guarantee that item continues being an ITextItem across certain function expression boundaries, because the invocation might be deferred, and something else might have changed the value in the mean time.
TypeScript Version: nightly (Version 2.0.0-dev.20160707)
Code
Expected behavior:
Compilation without errors like with version 1.8.10
Actual behavior:
Error during compilation:
test.ts(24,49): error TS2339: Property 'text' does not exist on type 'Item'.
The first reference of item.text is working correctly. The second in the lambda function in the forEach not.
This might by related to #8010.
The text was updated successfully, but these errors were encountered: