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

Class type parameter is not flowed to class property #15136

Closed
bcherny opened this issue Apr 11, 2017 · 1 comment
Closed

Class type parameter is not flowed to class property #15136

bcherny opened this issue Apr 11, 2017 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@bcherny
Copy link

bcherny commented Apr 11, 2017

class Class<T> {
  a: (b: T) => string
}

class Class2 extends Class<number> {
  a = b => 'b' // ERROR: Parameter 'b' implicitly has an 'any' type.
}

Expected: b should be a number
Actual: b is any

This is likely tracked already, but I was not able to find it. Filing here just in case.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Apr 11, 2017
@RyanCavanaugh
Copy link
Member

#10570

@microsoft microsoft locked and limited conversation to collaborators Jun 21, 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

2 participants