Skip to content

Type-only import can be used as value after 'import =' #36466

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

Closed
andrewbranch opened this issue Jan 27, 2020 · 0 comments · Fixed by #36496
Closed

Type-only import can be used as value after 'import =' #36466

andrewbranch opened this issue Jan 27, 2020 · 0 comments · Fixed by #36496
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@andrewbranch
Copy link
Member

import type * as os from 'os';
import cpus = os.cpus;
cpus();

Expected: Error on cpus()

Actual: No error

@andrewbranch andrewbranch added the Bug A bug in TypeScript label Jan 27, 2020
@andrewbranch andrewbranch added this to the TypeScript 3.8.1 milestone Jan 27, 2020
@andrewbranch andrewbranch self-assigned this Jan 27, 2020
@andrewbranch andrewbranch added the Fix Available A PR has been opened for this issue label Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant