Type guard not applied for type which is a union with an indexed type #21045
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Milestone
TypeScript Version: 2.7.0-dev.20180105
Code
Expected behavior:
after performing
in
tests, access to the property tested for should not be an error, we know it is there.Actual behavior:
error when trying to use the property guarded by the
in
test.Property 'foo' does not exist on type '{ [key: string]: {}; }'.
The text was updated successfully, but these errors were encountered: