Skip to content

Compilation errors with enabled allowSyntheticDefaultImports on 2.1 nightly #10429

Closed
@Strate

Description

@Strate

TypeScript Version: 2.1.0-dev.20160819

Code

self-contained project here: https://github.com/Strate/typescript-issues

Expected behavior:
No compilation errors

Actual behavior:
If allowSyntheticDefaultImports enabled project compilation fails with:

3 let a = SomeClass.SomeEnum.one;
                    ~~~~~~~~

index.tsx(3,19): error TS2339: Property 'SomeEnum' does not exist on type 'typeof "/devel/src/github/Strate/typescript-issues/modules/SomeClass"'.


5 let b = <SomeClass />;
           ~~~~~~~~~

index.tsx(5,10): error TS2604: JSX element type 'SomeClass' does not have any construct or call signatures.

If allowSyntheticDefaultImports disabled project compilation succees
Typescript on version 2.0 beta works perfectly.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions