Skip to content

No error for duplicate function in JavaScript #27011

Open
@ghost

Description

TypeScript Version: 3.1.0-dev.20180907

Code

function f() {}
function f() {}

Expected behavior:

Duplicate function implementation. error, exactly like in a .ts file.

Actual behavior:

No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallycheckJsRelates to checking JavaScript using TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions