TypeScript/tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.types
Anders Hejlsberg c456bbd466
Support re-aliasing of type alias instantiations (#42284)
* New aliases for type alias instantiations

* New aliases for conditional, mapped, and anonymous object type instantiations

* Accept new baselines

* Fix issues with re-aliasing

* Accept new baselines
2021-01-11 13:29:46 -10:00

41 lines
766 B
Plaintext

=== tests/cases/compiler/Uppercased_Dir/src/index.ts ===
import { TypeB } from './type-b';
>TypeB : any
export class Broken {
>Broken : Broken
method () {
>method : () => TypeB
return { } as TypeB;
>{ } as TypeB : TypeB
>{ } : {}
}
}
=== tests/cases/compiler/Uppercased_Dir/src/type-b.ts ===
import { Merge } from './types';
>Merge : any
import { TypeA } from './type-a';
>TypeA : any
export type TypeB = Merge<TypeA, {
>TypeB : TypeB
b: string;
>b : string
}>;
=== tests/cases/compiler/Uppercased_Dir/src/type-a.ts ===
export type TypeA = {
>TypeA : TypeA
a: string;
>a : string
}
=== tests/cases/compiler/Uppercased_Dir/src/types.ts ===
export type Merge<T, U> = T & U;
>Merge : Merge<T, U>