Skip to content

Spec needs to document 'this'-parameters for functions #20343

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
DanielRosenwasser opened this issue Nov 29, 2017 · 1 comment
Closed

Spec needs to document 'this'-parameters for functions #20343

DanielRosenwasser opened this issue Nov 29, 2017 · 1 comment
Assignees
Labels
Spec Issues related to the TypeScript language specification

Comments

@DanielRosenwasser
Copy link
Member

#6018

@DanielRosenwasser DanielRosenwasser added the Spec Issues related to the TypeScript language specification label Nov 29, 2017
@DanielRosenwasser
Copy link
Member Author

Relevant: relationships need to be updated

if M has a this-parameter whose type is not the void type, then it must be a subtype of the this-parameter type of N or N must not have a this-parameter.

if M has a this-parameter whose type is not the void type, then it must be assignable to the this-parameter type of N or N must not have a this-parameter.

if M has a this-parameter whose type is not the void type, then it must be comparable to the this-parameter type of N or N must not have a this-parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec Issues related to the TypeScript language specification
Projects
None yet
Development

No branches or pull requests

3 participants