Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive TS6133 (declared but never used) report. #11985

Closed
Strate opened this issue Nov 2, 2016 · 2 comments
Closed

False positive TS6133 (declared but never used) report. #11985

Strate opened this issue Nov 2, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@Strate
Copy link

Strate commented Nov 2, 2016

% tsc --version
Version 2.0.6
class SomeClass {
	private method = () => {

	}

	public handler() {
		const {method} = this;
		method();
	}
}

and then compile file: tsc <file> --noUnusedLocals

Expected
No errors

Actual
TS6133.ts(2,10): error TS6133: 'method' is declared but never used.

@normalser
Copy link

Similar #11324 ?

@Strate
Copy link
Author

Strate commented Nov 2, 2016

@wallverb actually duplicate

@mhegazy mhegazy added the Duplicate An existing issue was already created label Nov 2, 2016
@mhegazy mhegazy closed this as completed Nov 2, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants