mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 22:55:36 -05:00
Fix truthiness call check for this-property access (#38163)
This commit is contained in:
@@ -64,5 +64,10 @@ class Foo {
|
||||
|
||||
// ok
|
||||
this.maybeIsUser ? console.log('this.maybeIsUser') : undefined;
|
||||
|
||||
// ok
|
||||
if (this.isUser) {
|
||||
this.isUser();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user