Closed
Description
Repro
import React from 'react';
class Hello extends React.Component<{tag: () => React$MixedElement}> {
inline() {
return <this.props.tag />
}
}
Expected Result
The this
should be treated like a ThisExpression
.
Actual Result
The this
is treated like a variable called this
, and thus creates an unclosed reference to a variable that can never exist.
Additional Info
Context: #3788 (comment)
cc @ljharb