_This issue was originally filed by [benl@google.com](https://github.com/search?q=benl%40google.com&type=Users)_ --- Use dartc_test to run: bool foo(bool bar()) => bar(); bool bar() {} main() { foo(bar); } with --enable_type_checks. An error is thrown because the type of bar is not bool.
This issue was originally filed by benl@google.com
Use dartc_test to run:
bool foo(bool bar()) => bar();
bool bar() {}
main() {
foo(bar);
}
with --enable_type_checks.
An error is thrown because the type of bar is not bool.