Created
May 4, 2016 17:02
-
-
Save jeffmo/0682a06fc212378bd8d46f2ae159b4ef 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 | |
const a: number = 'asdf'; | |
const b: string = 2; |
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 version | |
Flow, a static type checker for JavaScript, version 0.24.0 | |
> flow check | |
main.js:3 | |
3: const a: number = 'asdf'; | |
^^^^^^ string. This type is incompatible with | |
3: const a: number = 'asdf'; | |
^^^^^^ number | |
main.js:4 | |
4: const b: string = 2; | |
^ number. This type is incompatible with | |
4: const b: string = 2; | |
^^^^^^ string | |
Found 2 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment