Skip to content

Instantly share code, notes, and snippets.

@iam-peekay
Last active December 8, 2016 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iam-peekay/6da961215448cb216b74faa122f533e2 to your computer and use it in GitHub Desktop.
Save iam-peekay/6da961215448cb216b74faa122f533e2 to your computer and use it in GitHub Desktop.
var rectangle = new Rectangle(10, 4);
var area: string = rectangle.area();
// Flow errors
100: var area: string = rectangle.area();
^^^^^^^^^^^^^^^^ number. This type is incompatible with
100: var area: string = rectangle.area();
^^^^^^ string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment