TypeScript/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction3.js

13 lines
234 B
TypeScript
Raw Normal View History

2015-05-14 00:27:40 +02:00
//// [unionTypeWithRecursiveSubtypeReduction3.ts]
var a27: { prop: number } | { prop: T27 };
type T27 = typeof a27;
var b: T27;
var s: string = b;
//// [unionTypeWithRecursiveSubtypeReduction3.js]
var a27;
var b;
var s = b;