TypeScript/tests/baselines/reference/indexedAccessToThisTypeOnIntersection01.js
Daniel Rosenwasser 3766be1bde
Test indexed access to this on intersections (#40967)
* Added test.

* Accepted baselines.
2020-10-06 14:18:44 -07:00

10 lines
192 B
TypeScript

//// [indexedAccessToThisTypeOnIntersection01.ts]
interface A {
a: string;
getA: this['a'];
}
type T = (A & { a: number })['getA'];
//// [indexedAccessToThisTypeOnIntersection01.js]