Skip to content

Instantly share code, notes, and snippets.

@n0nick
Last active December 18, 2017 23:31
Show Gist options
  • Save n0nick/1cf6a0dd33ce63b0c20e5e59b2e7b52e to your computer and use it in GitHub Desktop.
Save n0nick/1cf6a0dd33ce63b0c20e5e59b2e7b52e to your computer and use it in GitHub Desktop.
class A {
private foo;
private bar;
func() {
console.log({
a: () => { console.log(this.foo); }, // this is fine
b() { console.log(this.bar); }, // here's the bug
});
}
}
{
"include": ["*.ts"],
"compilerOptions": {
"noUnusedLocals": true,
"target": "es5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment