Skip to content

Using .call on a known function type should not be a dynamic call #26812

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

Closed
leafpetersen opened this issue Jul 1, 2016 · 3 comments
Closed
Assignees
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@leafpetersen
Copy link
Member

This code:

void f(int x) => print(x);
void main() {
  f.call("hello");
}

gets no errors or warnings in strong mode. Since we know the type of f, which should treat this as a regular call, and issue an error.

@jmesserly jmesserly added P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jul 1, 2016
@jmesserly
Copy link

P1 because I think this is blocking someone?

@jmesserly jmesserly added P2 A bug or feature request we're likely to work on and removed P1 A high priority bug; for example, a single project is unusable or has many test failures labels Jul 1, 2016
@jmesserly
Copy link

Marking P2 ... Leaf has a workaround from the DDC side :)

@jmesserly jmesserly self-assigned this Aug 9, 2016
@jmesserly
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants