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

support type promotion for more complex predicates in inference #18604

Closed
ghost opened this issue May 2, 2014 · 2 comments
Closed

support type promotion for more complex predicates in inference #18604

ghost opened this issue May 2, 2014 · 2 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@ghost
Copy link

ghost commented May 2, 2014

For pure predicates p we should be able to infer

if (a is List && p) {
  // a known as List
}

@ghost ghost self-assigned this May 2, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@natebosch
Copy link
Member

As far as I can tell this type promotion is working. If it isn't please add a concrete example.

@zoechi
Copy link
Contributor

zoechi commented Jul 26, 2018

Perhaps a limitation like discussed in #33932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants