Skip to content

Commit e290559

Browse files
committed
Add tests for decorators and declaration emit from error free source
1 parent 4706a06 commit e290559

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// @strict: true
2+
// @declaration: true
3+
// @emitDecoratorMetadata: true
4+
// @experimentalDecorators: true
5+
6+
type T10 = string[];
7+
type T11 = Array<string>;
8+
type T12 = readonly string[];
9+
type T13 = ReadonlyArray<string>;
10+
11+
type T20 = [number, number];
12+
type T21 = readonly [number, number];
13+
14+
declare function f1(ma: string[], ra: readonly string[], mt: [string, string], rt: readonly [string, string]): readonly [string, string];
15+
16+
declare const someDec: any;
17+
18+
class A {
19+
@someDec
20+
j: readonly string[] = [];
21+
@someDec
22+
k: readonly [string, number] = ['foo', 42];
23+
}

0 commit comments

Comments
 (0)