-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find name 'Fluxxor' && 'Import Fluxxor' - multiple conflicting Intellisense detections #8140
Comments
From @jwulf on November 24, 2015 12:51 This is on a Mac. |
From @jwulf on November 24, 2015 13:5 Perhaps it is the
Nope. It's still there with:
|
@jwulf would you be able to share a folder with me that shows the behavior. |
From @unional on April 15, 2016 20:51 Just encountered this also. // s.ts
export class Foo {}
// m.ts
import { Foo } from './s';
declare namespace Foo { };
export = Foo;
// c.ts
import * as Foo from './m';
console.log(Foo); |
From @unional on April 15, 2016 20:51 Reference: |
From @unional on April 15, 2016 20:57 I tested this on Windows. Code: 1.0 🎉 |
@unional thanks for the code test case. I am moving this to TS since the seems to be caused by the reexport in m.ts |
There is an error in this code, but it's not being reported at the right place. In m.ts, there should be a duplicate identifier error: // m.ts
import { Foo } from './s';
declare namespace Foo { };
^^^
Duplicate identifier 'Foo'. This is because imported identifiers don't merge with anything else. |
@ahejlsberg pointed out offline that the compiler assumes that symbols are either aliases (imported/exported symbols) or local declarations -- never both. So as soon as That means the code in // s.ts
export class Foo {}
// m.ts
declare module './s' {
namespace Foo { };
}
export var dummy = 1;
// c.ts
import { Foo } from './s'; // import from ./s instead of ./m
console.log(Foo); |
@sandersn there are cases where the error is not reported. but the export behavior is not what is expected. we should raise these as errors . |
From @jwulf on November 24, 2015 12:49
Copied from original issue: microsoft/vscode#544
The text was updated successfully, but these errors were encountered: