Skip to content
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

[Errors] merged interface declarations with conflicting heritage specifications #70

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

//== tests/cases/compiler/conflictingMemberTypesInBases.ts (1 errors) ====
interface A {
    m: string;
}
interface B extends A {
}
interface C {
    m: number;
}
interface D extends C {
}

interface E extends B { } // Error here for extending B and D
//!!! Interface 'E' cannot simultaneously extend types 'B' and 'D':
//!!! Named properties 'm' of types 'B' and 'D' are not identical.
interface E extends D { } // No duplicate error here

Expected: errors as above
Actual: no errors

@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
@ahejlsberg
Copy link
Member

Already fixed.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants