flowTest.js:30
30: const First: Array<ReactClass> = [Baz, Bar]
^^^ Baz. This type is incompatible with
30: const First: Array<ReactClass> = [Baz, Bar]
^^^ Bar
flowTest.js:30
30: const First: Array<ReactClass> = [Baz, Bar]
^^^ Bar. This type is incompatible with
30: const First: Array<ReactClass> = [Baz, Bar]
^^^ Baz
flowTest.js:31
31: const Second: Array<ReactClass<*>> = [Baz, Bar]
^^^ Baz. This type is incompatible with
31: const Second: Array<ReactClass<*>> = [Baz, Bar]
^^^ Bar
flowTest.js:31
31: const Second: Array<ReactClass<*>> = [Baz, Bar]
^^^ Bar. This type is incompatible with
31: const Second: Array<ReactClass<*>> = [Baz, Bar]
^^^ Baz
flowTest.js:32
32: const Third: Array<Class<React.Component>> = [Baz, Bar]
^^^^^^^^^^^^^^^ React$Component. This type is incompatible with
32: const Third: Array<Class<React.Component>> = [Baz, Bar]
^^^ Baz
flowTest.js:32
32: const Third: Array<Class<React.Component>> = [Baz, Bar]
^^^^^^^^^^^^^^^ React$Component. This type is incompatible with
32: const Third: Array<Class<React.Component>> = [Baz, Bar]
^^^ Bar
Found 6 errors
Last active
March 9, 2016 00:40
-
-
Save DanielHeath/c376a4e37b89e2325756 to your computer and use it in GitHub Desktop.
Wierd issue with flowtype
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
[options] | |
module.system=node | |
esproposal.class_static_fields=enable | |
[version] | |
0.22.1 |
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
node_modules/* |
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 */ | |
import React from "react"; | |
export class Bar extends React.Component { | |
static defaultProps = {}; | |
state: {}; | |
render(): ?React$Element<any> { | |
return <div/> | |
} | |
Bar(): string { | |
return "bar" | |
} | |
} | |
export class Baz extends React.Component { | |
static defaultProps = {}; | |
state: {}; | |
render(): ?React$Element<any> { | |
return <div/> | |
} | |
Baz(): string { | |
return "baz" | |
} | |
} | |
const First: Array<ReactClass> = [Baz, Bar] | |
const Second: Array<ReactClass<*>> = [Baz, Bar] | |
const Third: Array<Class<React.Component>> = [Baz, Bar] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment