Skip to content

Declaring identifiers that clash with pre-defined symbols doesn't result in a compilation error #1862

@saulecabrera

Description

@saulecabrera

Currently, it is possible to declare interfaces or classes with a name that is existent in the global scope. Example:

interface i32 {}

This shouldn't compile as i32 is already a global type.

Expected:

TS2427: Interface name cannot be 'i32'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions