TypeScript/tests/cases/compiler/propagateNonInferrableType.ts
Anders Hejlsberg 5d78cbdbbd
Propagate nonInferrableType in &&, || and ?? operators (#38035)
* Propagate nonInferrableType in &&, || and ?? operators

* Add regression test

* Simpler solution: getTypeFacts(neverType) should return TypeFacts.None
2020-04-20 11:04:24 -07:00

7 lines
171 B
TypeScript

// @strict: true
declare function resolver<T>(): () => void;
declare function wrapResolver<T>(resolverFunction: () => void): void;
wrapResolver(resolver() || []);