Merge remote-tracking branch 'upstream/master' into dontEmitNodeModules

This commit is contained in:
Bill Ticehurst
2016-06-30 10:36:50 -07:00
4 changed files with 51 additions and 1 deletions

View File

@@ -15388,7 +15388,7 @@ namespace ts {
function isUnwrappedReturnTypeVoidOrAny(func: FunctionLikeDeclaration, returnType: Type): boolean {
const unwrappedReturnType = isAsyncFunctionLike(func) ? getPromisedType(returnType) : returnType;
return maybeTypeOfKind(unwrappedReturnType, TypeFlags.Void | TypeFlags.Any);
return unwrappedReturnType && maybeTypeOfKind(unwrappedReturnType, TypeFlags.Void | TypeFlags.Any);
}
function checkReturnStatement(node: ReturnStatement) {