Skip to content

Implicit any when extending from generic class in JS #17073

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
ghost opened this issue Jul 10, 2017 · 0 comments
Closed

Implicit any when extending from generic class in JS #17073

ghost opened this issue Jul 10, 2017 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@ghost
Copy link

ghost commented Jul 10, 2017

TypeScript Version: nightly (2.5.0-dev.20170707)

Code

C.d.ts

export default class C<T> {
    t: T;
}

D.js

import C from "./C";
class D extends C {}

Expected behavior:

If --noImplicitAny is on, there should be an error that we forgot to provide a type parameter to C.

Actual behavior:

No error.

@ghost ghost added the Salsa label Jul 10, 2017
@ghost ghost mentioned this issue Jul 10, 2017
@mhegazy mhegazy added the Bug A bug in TypeScript label Oct 18, 2017
@mhegazy mhegazy assigned ghost Oct 18, 2017
@ghost ghost closed this as completed in #18778 Oct 20, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Oct 23, 2017
@mhegazy mhegazy added this to the TypeScript 2.7 milestone Oct 23, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This issue was closed.
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

1 participant