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

dart2js type inferrer doesn't infer the return type of closures. #16507

Open
floitschG opened this issue Feb 3, 2014 · 2 comments
Open

dart2js type inferrer doesn't infer the return type of closures. #16507

floitschG opened this issue Feb 3, 2014 · 2 comments
Labels
area-web Issues related to Dart Web. P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@floitschG
Copy link
Contributor

The dart2js type inferrer correctly infers the type of functions that are used as closures, but not the return type.

See dart2js/simple_inferrer_const_closure and dart2js/simple_inferrer_const_closure2

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@vsmenon vsmenon added the area-web Issues related to Dart Web. label Jul 20, 2019
@srawlins
Copy link
Member

srawlins commented Aug 5, 2019

This test no longer exists.

@sigmundch
Copy link
Member

The tests were converted to a new format and can now be found under: tests/compiler/dart2js/inference/data/const_closure2.dart

@sigmundch sigmundch added the P4 label Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Issues related to Dart Web. P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

5 participants