-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implement operator call() in dartc #1355
Comments
This comment was originally written by [email protected] Set owner to [email protected]. |
This comment was originally written by [email protected] Removed the owner. |
Removed Area-Compiler label. |
Marked this as blocking #2931. |
Added this to the M1 milestone. |
Marked this as being blocked by #2931. |
Bear in mind that it is no longer an operator, just a magic method. See recent specs. |
https://chromiumcodereview.appspot.com/10582003 Added Started label. |
https://code.google.com/p/dart/source/detail?r=8826 Added Fixed label. |
This issue was originally filed by [email protected]
New in 0.7 rev of the spec, the call operator allows your object to be invoked as if it were a function and the logic defined in the body of the operator is invoked.
// simple test with no types in signature
class A1 {
operator call() => 42;
}
var a1 = new A1();
Expect.equals(42, a1());
The text was updated successfully, but these errors were encountered: