TypeScript/tests/cases/compiler/declFileTypeAnnotationParenType.ts
2014-11-10 17:08:50 -08:00

12 lines
231 B
TypeScript

// @target: ES5
// @declaration: true
class c {
private p: string;
}
var x: (() => c)[] = [() => new c()];
var y = [() => new c()];
var k: (() => c) | string = (() => new c()) || "";
var l = (() => new c()) || "";