Last active
December 18, 2017 23:31
-
-
Save n0nick/1cf6a0dd33ce63b0c20e5e59b2e7b52e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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