Files
test-repo/tests/function/bind.js
T

9 lines
170 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
// @flow
let tests = [
function(x: (a: string, b: string) => void) {
let y = x.bind(x, 'foo');
y('bar'); // ok
y(123); // error, number !~> string
},
];