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

noUnusedLocals: errors on variables that are used #9412

Closed
DickvdBrink opened this issue Jun 29, 2016 · 1 comment
Closed

noUnusedLocals: errors on variables that are used #9412

DickvdBrink opened this issue Jun 29, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@DickvdBrink
Copy link
Contributor

Version: 2.0.0-dev.20160629

Compile below code with --noUnused Locals
tsc --noUnusedLocals test.ts

class test {
    public testMethod() {
        var that = this;

        setTimeout(() => {
            that.testMethod();
        }, 100);
    }
}

Expected
No errors but got one for test.ts(5,13): error TS6133: 'that' is declared but never used.

@mhegazy
Copy link
Contributor

mhegazy commented Jun 29, 2016

duplicate of #9403

@mhegazy mhegazy closed this as completed Jun 29, 2016
@mhegazy mhegazy added the Duplicate An existing issue was already created label Jun 29, 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

2 participants