-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TypeScript Version: 3.8.0-dev.20200128
Search Terms:
- import type
- extends interface
Code
For the TS:
import type * as iface from './iface';
interface Foo extends iface.IFace { }Expected behavior:
No errors. iface is only being used as a type, not a value
Actual behavior:
Error:
'iface' cannot be used as a value because it was imported using 'import type'
This code previously did not produce errors in TS 3.8-beta
Related issues
/cc @andrewbranch
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue