8000 Adding test · nycdotnet/TypeScript@5643f91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5643f91

Browse files
committed
Adding test
1 parent c89f2b7 commit 5643f91

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// @declaration: true
2+
3+
interface a { a }
4+
interface b { b }
5+
interface c { c }
6+
7+
type T1 = ([a, b, c]);
8+
type F1 = ([a, b, c]) => void;
9+
10+
type T2 = ({ a });
11+
type F2 = ({ a }) => void;
12+
13+
type T3 = ([{ a: b }, { b: a }]);
14+
type F3 = ([{ a: b }, { b: a }]) => void;
15+
16+
type T4 = ([{ a: [b, c] }]);
17+
type F4 = ([{ a: [b, c] }]) => void;
18+
19+
type C1 = new ([{ a: [b, c] }]) => void;
20+
21+
var v1 = ([a, b, c]) => "hello";
22+
var v2: ([a, b, c]) => string;

0 commit comments

Comments
 (0)
0