Skip to content

Infer lacked types of methods from bases #20422

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
falsandtru opened this issue Dec 3, 2017 · 2 comments
Closed

Infer lacked types of methods from bases #20422

falsandtru opened this issue Dec 3, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@falsandtru
Copy link
Contributor

TypeScript Version: master

Code

abstract class C {
  abstract m(a: number): void;
}

class D extends C {
  m(a) { // a should be number type
  }
}

Expected behavior:

Actual behavior:

$ node built/local/tsc.js index.ts --noImplicitAny --strictNullChecks
index.ts(6,5): error TS7006: Parameter 'a' implicitly has an 'any' type.
@ahejlsberg
Copy link
Member

See #10610.

@falsandtru
Copy link
Contributor Author

Thanks, I'll watch it.

@RyanCavanaugh RyanCavanaugh added Domain: ES Modules The issue relates to import/export style module behavior Duplicate An existing issue was already created and removed Domain: ES Modules The issue relates to import/export style module behavior labels Dec 4, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants