TypeScript/tests/cases/conformance/jsx/tsxAttributeResolution2.jsx
2015-06-18 14:03:43 -07:00

5 lines
211 B
JavaScript

// OK
<test1 c1={function (x) { return x.length; }}/>; // OK
<test1 data-c1={function (x) { return x.leng; }}/>; // OK
// Errors
<test1 c1={function (x) { return x.leng; }}/>; // Error, no leng on 'string'