Daniel Tschinder b3372a572d Remove whitespace generation (#5833)
* Remove whitespace generation and rely on default printing

Changes to printing:
* Add newline after last empty SwitchCase
* Add newlines around block comments if they are non-flow comments or contain newlines

* Fix a few more fixtures
2017-06-27 21:57:02 -05:00

24 lines
511 B
JavaScript

import React from 'react'; // Regression test for https://github.com/babel/babel/issues/5552
var _ref = <div />;
class BugReport extends React.Component {
constructor(...args) {
var _temp;
return _temp = super(...args), this.thisWontWork = ({
color
}) => data => {
return <div color={color}>does not reference data</div>;
}, this.thisWorks = ({
color
}) => data => {
return <div color={color}>{data}</div>;
}, _temp;
}
render() {
return _ref;
}
}