Files
test-repo/tests/flow_generic/break.js
T
Christopher Chedeau a502bf9f45 Add ability for flow generics to break (#1041)
While looking at an instability on the React codebase ( https://github.com/sebmarkbage/react/commit/ba1299acc2c3b66ec1e093c201bcede421a8caa0#diff-2550aa3d377452ae29361f5e53c51c10 ), I realized that we don't let them break which makes the code look weird.

So I added the ability for them to break :)
2017-03-20 12:35:30 -04:00

11 lines
272 B
JavaScript

var X = {
perform: function<
A, B, C, D, E, F, G,
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G // eslint-disable-line space-before-function-paren
>(
method: T, scope: any,
a: A, b: B, c: C, d: D, e: E, f: F,
): G {
}
}