Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

parser error: exceptions in field getter cause the parser to treat fields as methods #57

Closed
jbdeboer opened this issue Jul 23, 2013 · 1 comment
Assignees
Milestone

Comments

@jbdeboer
Copy link
Contributor

e.g. class Foo { bool get bar => bad expression; }

evaluating "!foo.bar" will thrown an error:

Can't convert Closure: ([dynamic, dynamic, dynamic, dynamic, dynamic]) => dynamic
to boolean.

it should throw "Exception: bad expression".

@pavelgj

@ghost ghost assigned jbdeboer Aug 14, 2013
@jbdeboer
Copy link
Contributor Author

Fixed as some point.

There is a test, parser_spec.dart:198 : error handling should pass exceptions through getters

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant