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

Flow didn't catch a call to missing property(or method) on a function #7786

Closed
AVykhrystyuk opened this issue Jun 4, 2019 · 1 comment
Closed

Comments

@AVykhrystyuk
Copy link
Contributor

AVykhrystyuk commented Jun 4, 2019

Flow version: 0.100.0

// @flow strict

function func(): void {
  return func.somethingMissing(); // <-- property 'somethingMissing' is missing
}

function func2(): number {
  return func2.__length__; // <-- property '__length__' is missing
}

Expected behavior

Flow yields an error that property 'x' is missing on a function

Actual behavior

Flow didn't catch a typo, so if that code is not covered by tests - you get a runtime error.

@AVykhrystyuk AVykhrystyuk changed the title Flow didn't catch a call to missing property(or method) on function Flow didn't catch a call to missing property(or method) on a function Jun 4, 2019
@goodmind
Copy link
Contributor

goodmind commented Jun 6, 2019

Duplicate of #106

@goodmind goodmind marked this as a duplicate of #106 Jun 6, 2019
@goodmind goodmind closed this as completed Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants