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

In Dart 2, first arg to assert() can't be a function #572

Closed
kwalrath opened this issue Feb 13, 2018 · 1 comment
Closed

In Dart 2, first arg to assert() can't be a function #572

kwalrath opened this issue Feb 13, 2018 · 1 comment
Labels
a.language Relates to the Dart language tour
Milestone

Comments

@kwalrath
Copy link
Contributor

See dart-lang/sdk#30326.

I think the only affected doc is the last paragraph of https://www.dartlang.org/guides/language/language-tour#assert.

@kwalrath kwalrath added this to the 2-dev milestone Feb 13, 2018
@kwalrath kwalrath added the a.language Relates to the Dart language tour label Feb 13, 2018
anders-sandholm added a commit that referenced this issue Mar 12, 2018
Update assert description to only allow expressions of type boolean (and not allow functions).
Fixes #572.
@anders-sandholm
Copy link
Contributor

Verified that this is the only place in the language tour that this needs fixing and submitted the above PR. HTH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.language Relates to the Dart language tour
Projects
None yet
Development

No branches or pull requests

2 participants