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

Confusing NoSuchError message for "fake" closures #14144

Closed
peter-ahe-google opened this issue Oct 16, 2013 · 0 comments
Closed

Confusing NoSuchError message for "fake" closures #14144

peter-ahe-google opened this issue Oct 16, 2013 · 0 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@peter-ahe-google
Copy link
Contributor

$ cat foo.dart
class Fisk {
  call() {}
}

main() {
  new Fisk().params;
}
$ ./sdk/bin/dart foo.dart
Unhandled exception:
Closure call with mismatched arguments: function 'params'

...
$

I would have expected a message more like:

Class 'Fisk' has no instance getter 'params'.

The current error message was introduced in r22209.

@peter-ahe-google peter-ahe-google added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. labels Oct 16, 2013
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants