Skip to content

import and export function name confliction should be an error #7195

Closed
@falsandtru

Description

@falsandtru

TypeScript Version:

master

Code

// lib.ts
export function f() {
}
// index.ts
import {f} from './lib';
export function f() {
}

Expected behavior:

error

Actual behavior:

pass

Metadata

Metadata

Assignees

No one assigned

    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