TypeScript/tests/cases/conformance/types/intersection/contextualIntersectionType.ts

6 lines
111 B
TypeScript
Raw Normal View History

2015-06-26 03:45:03 +02:00
var x: { a: (s: string) => string } & { b: (n: number) => number };
x = {
a: s => s,
b: n => n
};