Skip to content

Changed invocation of non-function objects to use a call getter #594

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
wants to merge 1 commit into from

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Sep 24, 2019

Cf. issue dart-lang/sdk#36420: All implementations except DDC will invoke a getter named call or a method named call in the case where a function expression invocation (dynamic or statically checked) is performed where the target is not a function object.

The language specification currently specifies that only a method named call can be invoked in this manner (so if a getter is found it is an error, dynamic or static).

This PR makes the necessary changes to the specification to allow using a getter (to obtain a function object which is then invoked).

@eernstg
Copy link
Member Author

eernstg commented Oct 23, 2019

Note discussion in dart-lang/sdk#36420, including dart-lang/sdk#36420 (comment), which may lead to acceptance or rejection of this change (of course, reviews of this PR are not needed if we don't want the underlying change after all).

@eernstg eernstg closed this Apr 22, 2023
@eernstg eernstg deleted the specify_call_getter_sep19 branch April 22, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants