Skip to content

Implicit any when extending from generic class in JS #17073

Closed
@ghost

Description

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.

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