Skip to content

Commit 341c397

Browse files
committed
Accept new baselines
1 parent c5fd2f1 commit 341c397

2 files changed

Lines changed: 52 additions & 12 deletions

File tree

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,94 @@
1+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(2,15): error TS8020: JSDoc types can only be used inside documentation comments.
2+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(4,15): error TS8020: JSDoc types can only be used inside documentation comments.
3+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(4,32): error TS8020: JSDoc types can only be used inside documentation comments.
4+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(7,20): error TS8020: JSDoc types can only be used inside documentation comments.
5+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(10,18): error TS8020: JSDoc types can only be used inside documentation comments.
16
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(11,12): error TS2554: Expected 1 arguments, but got 2.
7+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(13,14): error TS8020: JSDoc types can only be used inside documentation comments.
8+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(14,11): error TS8020: JSDoc types can only be used inside documentation comments.
9+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(15,8): error TS8020: JSDoc types can only be used inside documentation comments.
210
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(16,5): error TS2322: Type 'boolean[]' is not assignable to type 'boolean | undefined'.
311
Type 'boolean[]' is not assignable to type 'false'.
12+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(16,15): error TS8020: JSDoc types can only be used inside documentation comments.
413
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(16,15): error TS8028: JSDoc '...' may only appear in the last parameter of a signature.
5-
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(19,5): error TS2322: Type 'undefined' is not assignable to type 'never'.
6-
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(19,17): error TS2322: Type 'number' is not assignable to type 'boolean'.
7-
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(19,25): error TS1110: Type expected.
14+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(17,11): error TS8020: JSDoc types can only be used inside documentation comments.
15+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(18,17): error TS8020: JSDoc types can only be used inside documentation comments.
16+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(19,5): error TS2322: Type 'undefined' is not assignable to type 'number | null'.
17+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(19,17): error TS8020: JSDoc types can only be used inside documentation comments.
18+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(21,16): error TS8020: JSDoc types can only be used inside documentation comments.
19+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(22,16): error TS8020: JSDoc types can only be used inside documentation comments.
20+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(23,17): error TS8020: JSDoc types can only be used inside documentation comments.
21+
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(24,17): error TS8020: JSDoc types can only be used inside documentation comments.
822
tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts(24,17): error TS8028: JSDoc '...' may only appear in the last parameter of a signature.
923

1024

11-
==== tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts (7 errors) ====
25+
==== tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts (21 errors) ====
1226
// grammar error from checker
1327
var ara: Array.<number> = [1,2,3];
28+
~
29+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
1430

1531
function f(x: ?number, y: Array.<number>) {
32+
~~~~~~~
33+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
34+
~
35+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
1636
return x ? x + y[1] : y[0];
1737
}
1838
function hof(ctor: function(new: number, string)) {
39+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
1941
return new ctor('hi');
2042
}
2143
function hof2(f: function(this: number, string): string) {
44+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
2246
return f(12, 'hullo');
2347
~~~~~~~~~~~~~~
2448
!!! error TS2554: Expected 1 arguments, but got 2.
2549
}
2650
var whatevs: * = 1001;
51+
~
52+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
2753
var ques: ? = 'what';
54+
~
55+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
2856
var g: function(number, number): number = (n,m) => n + m;
57+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
2959
var variadic: ...boolean = [true, false, true];
3060
~~~~~~~~
3161
!!! error TS2322: Type 'boolean[]' is not assignable to type 'boolean | undefined'.
3262
!!! error TS2322: Type 'boolean[]' is not assignable to type 'false'.
3363
~~~~~~~~~~
64+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
65+
~~~~~~~~~~
3466
!!! error TS8028: JSDoc '...' may only appear in the last parameter of a signature.
3567
var most: !string = 'definite';
68+
~~~~~~~
69+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
3670
var postfixdef: number! = 101;
71+
~~~~~~~
72+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
3773
var postfixopt: number? = undefined;
3874
~~~~~~~~~~
39-
!!! error TS2322: Type 'undefined' is not assignable to type 'never'.
40-
~~~~~~
41-
!!! error TS2322: Type 'number' is not assignable to type 'boolean'.
42-
~
43-
!!! error TS1110: Type expected.
75+
!!! error TS2322: Type 'undefined' is not assignable to type 'number | null'.
76+
~~~~~~~
77+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
4478

4579
var nns: Array<?number>;
80+
~~~~~~~
81+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
4682
var dns: Array<!number>;
83+
~~~~~~~
84+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
4785
var anys: Array<*>;
86+
~
87+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
4888
var vars: Array<...number>;
4989
~~~~~~~~~
90+
!!! error TS8020: JSDoc types can only be used inside documentation comments.
91+
~~~~~~~~~
5092
!!! error TS8028: JSDoc '...' may only appear in the last parameter of a signature.
5193

5294

tests/baselines/reference/jsdocDisallowedInTypescript.types

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ var postfixdef: number! = 101;
8080
>101 : 101
8181

8282
var postfixopt: number? = undefined;
83-
>postfixopt : never
84-
> : No type information available!
85-
> : No type information available!
83+
>postfixopt : number | null
8684
>undefined : undefined
8785

8886
var nns: Array<?number>;

0 commit comments

Comments
 (0)