TypeScript/tests/cases/compiler/declFileTypeAnnotationParenType.ts

12 lines
231 B
TypeScript
Raw Normal View History

2014-11-11 02:08:50 +01:00
// @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()) || "";