TypeScript/tests/cases/compiler/typeofUsedBeforeBlockScoped.ts
2017-04-17 15:25:36 -07:00

8 lines
144 B
TypeScript

type T = typeof C & typeof C.s & typeof o & typeof o.n;
class C {
static s = 2;
}
type W = typeof o.n;
let o2: typeof o;
let o = { n: 12 };