Created
October 26, 2015 22:29
-
-
Save jeffmo/78d5488b6df6428f2abc to your computer and use it in GitHub Desktop.
This file contains 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
[options] | |
esproposal.class_instance_fields=enable |
This file contains 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 | |
class Foo { | |
prop1: string = 42; | |
prop2: number = 42; | |
} |
This file contains 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
A.js:4 | |
4: prop1: string = 42; | |
^^ number. This type is incompatible with | |
4: prop1: string = 42; | |
^^^^^^ string | |
Found 1 error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment