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
Expected behavior:
In test5.ts we don't get the error because we import SomeType explicitly.
In test4.ts we don't get the error because we import everything from the source module using import * as...
In the remaining three tests it seems we should not get the error, as we are doing the same thing as test4.ts except via various wrapper modules which import and re-export all the contents of the source module.
Actual behavior:
In test1 through test3 we get:
Exported variable 'foo' has or is using name 'SomeType'
from external module ".../source" but cannot be named.
For example wrapper1 says:
export*from"./source"
So it seems like what works with source should work with wrapper1.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.0.3
Code
See this repository: https://github.com/danielearwicker/tsrepro1
Expected behavior:
In
test5.ts
we don't get the error because we importSomeType
explicitly.In
test4.ts
we don't get the error because we import everything from thesource
module usingimport * as...
In the remaining three tests it seems we should not get the error, as we are doing the same thing as
test4.ts
except via various wrapper modules which import and re-export all the contents of thesource
module.Actual behavior:
In
test1
throughtest3
we get:For example
wrapper1
says:So it seems like what works with
source
should work withwrapper1
.The text was updated successfully, but these errors were encountered: