Skip to content

narrowing an undefined | A property not working anymore #10169

@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

nightly build August 5, 2016

function noUnnecessaryTypeAnnotations(node: ts.Node, checker: ts.TypeChecker): Issue | void {
    if (isVariableDeclaration(node)) {
        if (node.initializer !== undefined && node.type !== undefined) {
            node.initializer; // <-- expected: Expression; actual: Expression | undefined
        }
   }
}

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions