Skip to content

Instantly share code, notes, and snippets.

@jeffmo
Created October 26, 2015 22:29
Show Gist options
  • Save jeffmo/78d5488b6df6428f2abc to your computer and use it in GitHub Desktop.
Save jeffmo/78d5488b6df6428f2abc to your computer and use it in GitHub Desktop.
[options]
esproposal.class_instance_fields=enable
// @flow
class Foo {
prop1: string = 42;
prop2: number = 42;
}
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