TypeScript/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction3.ts

6 lines
103 B
TypeScript
Raw Normal View History

2015-05-14 00:27:40 +02:00
var a27: { prop: number } | { prop: T27 };
type T27 = typeof a27;
var b: T27;
var s: string = b;