Skip to content

Commit 6fbd79b

Browse files
committed
Update baselines to be current
1 parent a6642d6 commit 6fbd79b

File tree

3 files changed

+45
-18
lines changed

3 files changed

+45
-18
lines changed
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
//// [in.js]
22
/**
3-
* @param {'literal'} input
3+
* @param {'literal'} p1
4+
* @param {"literal"} p2
5+
* @param {'literal' | 'other'} p3
6+
* @param {'literal' | number} p4
47
*/
5-
function f(input) {
6-
return input + '.';
8+
function f(p1, p2, p3, p4) {
9+
return p1 + p2 + p3 + p4 + '.';
710
}
811

912

1013
//// [out.js]
1114
/**
12-
* @param {'literal'} input
15+
* @param {'literal'} p1
16+
* @param {"literal"} p2
17+
* @param {'literal' | 'other'} p3
18+
* @param {'literal' | number} p4
1319
*/
14-
function f(input) {
15-
return input + '.';
20+
function f(p1, p2, p3, p4) {
21+
return p1 + p2 + p3 + p4 + '.';
1622
}
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
=== tests/cases/compiler/in.js ===
22
/**
3-
* @param {'literal'} input
3+
* @param {'literal'} p1
4+
* @param {"literal"} p2
5+
* @param {'literal' | 'other'} p3
6+
* @param {'literal' | number} p4
47
*/
5-
function f(input) {
8+
function f(p1, p2, p3, p4) {
69
>f : Symbol(f, Decl(in.js, 0, 0))
7-
>input : Symbol(input, Decl(in.js, 3, 11))
10+
>p1 : Symbol(p1, Decl(in.js, 6, 11))
11+
>p2 : Symbol(p2, Decl(in.js, 6, 14))
12+
>p3 : Symbol(p3, Decl(in.js, 6, 18))
13+
>p4 : Symbol(p4, Decl(in.js, 6, 22))
814

9-
return input + '.';
10-
>input : Symbol(input, Decl(in.js, 3, 11))
15+
return p1 + p2 + p3 + p4 + '.';
16+
>p1 : Symbol(p1, Decl(in.js, 6, 11))
17+
>p2 : Symbol(p2, Decl(in.js, 6, 14))
18+
>p3 : Symbol(p3, Decl(in.js, 6, 18))
19+
>p4 : Symbol(p4, Decl(in.js, 6, 22))
1120
}
1221

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
=== tests/cases/compiler/in.js ===
22
/**
3-
* @param {'literal'} input
3+
* @param {'literal'} p1
4+
* @param {"literal"} p2
5+
* @param {'literal' | 'other'} p3
6+
* @param {'literal' | number} p4
47
*/
5-
function f(input) {
6-
>f : (input: "literal") => string
7-
>input : "literal"
8+
function f(p1, p2, p3, p4) {
9+
>f : (p1: "literal", p2: "literal", p3: "literal" | "other", p4: "literal" | number) => string
10+
>p1 : "literal"
11+
>p2 : "literal"
12+
>p3 : "literal" | "other"
13+
>p4 : "literal" | number
814

9-
return input + '.';
10-
>input + '.' : string
11-
>input : "literal"
15+
return p1 + p2 + p3 + p4 + '.';
16+
>p1 + p2 + p3 + p4 + '.' : string
17+
>p1 + p2 + p3 + p4 : string
18+
>p1 + p2 + p3 : string
19+
>p1 + p2 : string
20+
>p1 : "literal"
21+
>p2 : "literal"
22+
>p3 : "literal" | "other"
23+
>p4 : "literal" | number
1224
>'.' : string
1325
}
1426

0 commit comments

Comments
 (0)