Skip to content

compile fail when import types with decorator #24619

@zhang740

Description

@zhang740

TypeScript Version: 3.0.0-dev.20180602

Search Terms:
import types with decorator

Code

export class A {
  @test
  b: import('./b').B
}

// tsconfig.json:
{
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    ...
}

Expected behavior:

  • compile success
  • the design:type of property b is B.

Actual behavior:

when tsc output:

Error: Debug Failure. Unexpected node.
Node 179 was unexpected.

Playground Link:
N/A

Related Issues:
N/A

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