-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: scope-managerIssues related to @typescript-eslint/scope-managerIssues related to @typescript-eslint/scope-manager
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
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: scope-managerIssues related to @typescript-eslint/scope-managerIssues related to @typescript-eslint/scope-manager