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

No error when a type inside an object doesn't exist #685

Closed
kassens opened this issue Jul 31, 2015 · 1 comment
Closed

No error when a type inside an object doesn't exist #685

kassens opened this issue Jul 31, 2015 · 1 comment

Comments

@kassens
Copy link
Member

kassens commented Jul 31, 2015

This should clearly be a flow error, but currently isn't:

var BagOfClasses = {};
function length(x): BagOfClasses.Foo {
  return x;
}
length('10')

http://tryflow.org/#2155a34b50bf7385334fa8066772f781

@gkz
Copy link
Member

gkz commented Oct 27, 2022

Fixed: https://medium.com/flow-type/improved-handling-of-the-empty-object-in-flow-ead91887e40c

@gkz gkz closed this as completed Oct 27, 2022
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

4 participants