Closed
Description
TypeScript Version: 3.8.0-dev.20191206
Search Terms:
- diagnostics
- conditional
- missing function call
Code
import * as fs from 'fs';
fs.stat('/path/to/file', function(err, stats) {
if (stats.isDirectory) {
console.log(`[Directory] ${stats.ctime}`)
}
});
Expected behavior:
Error on isDirectory
. This is a method but it has not been called
Actual behavior:
No error reported.
If I remove the console log line