Last active
March 11, 2017 00:32
-
-
Save garbles/5760019d614ca1f9f120274217dc5905 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
function giveMeStrings(arr: string[]): string { | |
// do something with the array of strings | |
} | |
giveMeStrings('hello', 'goodbye'); | |
/* | |
ERROR: | |
7: giveMeStrings('hello', 'goodbye'); | |
^ string. This type is incompatible with the expected param type of | |
3: function giveMeStrings(arr: string[]): string { | |
^ array type | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment