* Fix: checkAliasSymbol crash when checking for @deprecated It's possible that we shouldn't be creating symbol with no declarations from non-homomorphic mapped types, but for 4.2, the right fix is to make the @deprecated-check in checkAliasSymbol ensure that target.declarations is defined. * Add bug number and accept baselines
24 lines
977 B
Plaintext
24 lines
977 B
Plaintext
=== tests/cases/compiler/errors.d.ts ===
|
|
// #42957
|
|
|
|
export = createHttpError;
|
|
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
|
|
|
|
declare const createHttpError: createHttpError.NamedConstructors;
|
|
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
|
|
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
|
|
>NamedConstructors : Symbol(createHttpError.NamedConstructors, Decl(errors.d.ts, 4, 35))
|
|
|
|
declare namespace createHttpError {
|
|
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
|
|
|
|
type NamedConstructors = { [P in 'NotFound']: unknown;}
|
|
>NamedConstructors : Symbol(NamedConstructors, Decl(errors.d.ts, 4, 35))
|
|
>P : Symbol(P, Decl(errors.d.ts, 5, 33))
|
|
}
|
|
|
|
=== tests/cases/compiler/main.ts ===
|
|
import { NotFound } from './errors'
|
|
>NotFound : Symbol(NotFound, Decl(main.ts, 0, 8))
|
|
|