Skip to content

Commit 9ca08d7

Browse files
committed
update baseline
1 parent 5522627 commit 9ca08d7

File tree

492 files changed

+5943
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

492 files changed

+5943
-91
lines changed

tests/baselines/reference/ES3For-ofTypeCheck1.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts(1,15): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
23

34

5+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
46
==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts (1 errors) ====
57
for (var v of "") { }
68
~~
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts (0 errors) ====
6+
for (var v of [true]) { }

tests/baselines/reference/ES3For-ofTypeCheck4.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts(2,17): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
23

34

5+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
46
==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts (1 errors) ====
57
var union: string | string[];
68
for (const v of union) { }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts (0 errors) ====
6+
var union: string[] | number[];
7+
for (var v of union) { }

tests/baselines/reference/accessorWithES3.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(4,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
23
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(10,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
34
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(15,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
45
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(19,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
56

67

8+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
79
==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts (4 errors) ====
810
// error to use accessors in ES3 mode
911

tests/baselines/reference/accessorsNotAllowedInES3.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/compiler/accessorsNotAllowedInES3.ts(2,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
23
tests/cases/compiler/accessorsNotAllowedInES3.ts(4,15): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
34

45

6+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
57
==== tests/cases/compiler/accessorsNotAllowedInES3.ts (2 errors) ====
68
class C {
79
get x(): number { return 1; }

tests/baselines/reference/alwaysStrictNoImplicitUseStrict.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'.
2+
error TS5096: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
23
tests/cases/compiler/alwaysStrictNoImplicitUseStrict.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode.
34

45

56
!!! error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'.
7+
!!! error TS5096: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
68
==== tests/cases/compiler/alwaysStrictNoImplicitUseStrict.ts (1 errors) ====
79
module M {
810
export function f() {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts (0 errors) ====
6+
// ok to use accessors in ambient class in ES3
7+
declare class C {
8+
static get a(): string;
9+
static set a(value: string);
10+
11+
private static get b(): string;
12+
private static set b(foo: string);
13+
14+
get x(): string;
15+
set x(value: string);
16+
17+
private get y(): string;
18+
private set y(foo: string);
19+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/compiler/Class.ts (0 errors) ====
6+
import { Configurable } from "./Configurable"
7+
8+
export class HiddenClass {}
9+
10+
export class ActualClass extends Configurable(HiddenClass) {}
11+
==== tests/cases/compiler/Configurable.ts (0 errors) ====
12+
export type Constructor<T> = {
13+
new(...args: any[]): T;
14+
}
15+
export function Configurable<T extends Constructor<{}>>(base: T): T {
16+
return class extends base {
17+
18+
constructor(...args: any[]) {
19+
super(...args);
20+
}
21+
22+
};
23+
}
24+

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7035,6 +7035,7 @@ declare namespace ts {
70357035
exactOptionalPropertyTypes?: boolean;
70367036
experimentalDecorators?: boolean;
70377037
forceConsistentCasingInFileNames?: boolean;
7038+
ignoreDeprecations?: string;
70387039
importHelpers?: boolean;
70397040
importsNotUsedAsValues?: ImportsNotUsedAsValues;
70407041
inlineSourceMap?: boolean;
@@ -9398,7 +9399,7 @@ declare namespace ts {
93989399
* @param configFileParsingDiagnostics - error during config file parsing
93999400
* @returns A 'Program' object.
94009401
*/
9401-
function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[]): Program;
9402+
function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[], typeScriptVersion?: string): Program;
94029403
/**
94039404
* Returns the target config filename of a project reference.
94049405
* Note: The file might not exist.

tests/baselines/reference/api/typescript.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,7 @@ declare namespace ts {
31013101
exactOptionalPropertyTypes?: boolean;
31023102
experimentalDecorators?: boolean;
31033103
forceConsistentCasingInFileNames?: boolean;
3104+
ignoreDeprecations?: string;
31043105
importHelpers?: boolean;
31053106
importsNotUsedAsValues?: ImportsNotUsedAsValues;
31063107
inlineSourceMap?: boolean;
@@ -5464,7 +5465,7 @@ declare namespace ts {
54645465
* @param configFileParsingDiagnostics - error during config file parsing
54655466
* @returns A 'Program' object.
54665467
*/
5467-
function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[]): Program;
5468+
function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[], typeScriptVersion?: string): Program;
54685469
/**
54695470
* Returns the target config filename of a project reference.
54705471
* Note: The file might not exist.

tests/baselines/reference/bigIntWithTargetES3.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/compiler/bigIntWithTargetES3.ts(5,22): error TS2737: BigInt literals are not available when targeting lower than ES2020.
23
tests/cases/compiler/bigIntWithTargetES3.ts(5,29): error TS2737: BigInt literals are not available when targeting lower than ES2020.
34
tests/cases/compiler/bigIntWithTargetES3.ts(5,39): error TS2737: BigInt literals are not available when targeting lower than ES2020.
45
tests/cases/compiler/bigIntWithTargetES3.ts(5,48): error TS2737: BigInt literals are not available when targeting lower than ES2020.
56

67

8+
!!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
79
==== tests/cases/compiler/bigIntWithTargetES3.ts (4 errors) ====
810
const normalNumber = 123; // should not error
911
let bigintType: bigint; // should not error

tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/compiler/weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'?
23
tests/cases/compiler/weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type.
34
tests/cases/compiler/weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type.
45

56

7+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
68
==== tests/cases/compiler/weird.js (3 errors) ====
79
someFunction(function(BaseClass) {
810
~~~~~~~~~~~~
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/conformance/jsdoc/returns.js (0 errors) ====
6+
// @ts-check
7+
/**
8+
* @returns {string} This comment is not currently exposed
9+
*/
10+
function f() {
11+
return "hello";
12+
}
13+
14+
/**
15+
* @returns {string=} This comment is not currently exposed
16+
*/
17+
function f1() {
18+
return "hello world";
19+
}
20+
21+
/**
22+
* @returns {string|number} This comment is not currently exposed
23+
*/
24+
function f2() {
25+
return 5 || "hello";
26+
}

tests/baselines/reference/checkJsdocReturnTag2.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/conformance/jsdoc/returns.js(6,5): error TS2322: Type 'number' is not assignable to type 'string'.
23
tests/cases/conformance/jsdoc/returns.js(13,5): error TS2322: Type 'number | boolean' is not assignable to type 'string | number'.
34
Type 'boolean' is not assignable to type 'string | number'.
45

56

7+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
68
==== tests/cases/conformance/jsdoc/returns.js (2 errors) ====
79
// @ts-check
810
/**
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/compiler/a.ts (0 errors) ====
6+
class c {
7+
}
8+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames52.js (0 errors) ====
6+
const array = [];
7+
for (let i = 0; i < 10; ++i) {
8+
array.push(class C {
9+
[i] = () => C;
10+
static [i] = 100;
11+
})
12+
}
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames52.js (0 errors) ====
6+
const array = [];
7+
for (let i = 0; i < 10; ++i) {
8+
array.push(class C {
9+
[i] = () => C;
10+
static [i] = 100;
11+
})
12+
}
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"ignoreDeprecations": "someString"
4+
}
5+
}

tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/compiler/file1.ts(1,1): error TS2448: Block-scoped variable 'c' used before its declaration.
23

34

5+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
46
==== tests/cases/compiler/file1.ts (1 errors) ====
57
c;
68
~
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
2+
3+
4+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
5+
==== tests/cases/compiler/controlFlowJavascript.js (0 errors) ====
6+
let cond = true;
7+
8+
// CFA for 'let' and no initializer
9+
function f1() {
10+
let x;
11+
if (cond) {
12+
x = 1;
13+
}
14+
if (cond) {
15+
x = "hello";
16+
}
17+
const y = x; // string | number | undefined
18+
}
19+
20+
// CFA for 'let' and 'undefined' initializer
21+
function f2() {
22+
let x = undefined;
23+
if (cond) {
24+
x = 1;
25+
}
26+
if (cond) {
27+
x = "hello";
28+
}
29+
const y = x; // string | number | undefined
30+
}
31+
32+
// CFA for 'let' and 'null' initializer
33+
function f3() {
34+
let x = null;
35+
if (cond) {
36+
x = 1;
37+
}
38+
if (cond) {
39+
x = "hello";
40+
}
41+
const y = x; // string | number | null
42+
}
43+
44+
// CFA for 'var' with no initializer
45+
function f5() {
46+
var x;
47+
if (cond) {
48+
x = 1;
49+
}
50+
if (cond) {
51+
x = "hello";
52+
}
53+
const y = x; // string | number | undefined
54+
}
55+
56+
// CFA for 'var' with 'undefined' initializer
57+
function f6() {
58+
var x = undefined;
59+
if (cond) {
60+
x = 1;
61+
}
62+
if (cond) {
63+
x = "hello";
64+
}
65+
const y = x; // string | number | undefined
66+
}
67+
68+
// CFA for 'var' with 'null' initializer
69+
function f7() {
70+
var x = null;
71+
if (cond) {
72+
x = 1;
73+
}
74+
if (cond) {
75+
x = "hello";
76+
}
77+
const y = x; // string | number | null
78+
}
79+
80+
// No CFA for captured outer variables
81+
function f9() {
82+
let x;
83+
if (cond) {
84+
x = 1;
85+
}
86+
if (cond) {
87+
x = "hello";
88+
}
89+
const y = x; // string | number | undefined
90+
function f() {
91+
const z = x; // any
92+
}
93+
}
94+
95+
// No CFA for captured outer variables
96+
function f10() {
97+
let x;
98+
if (cond) {
99+
x = 1;
100+
}
101+
if (cond) {
102+
x = "hello";
103+
}
104+
const y = x; // string | number | undefined
105+
const f = () => {
106+
const z = x; // any
107+
};
108+
}
109+

tests/baselines/reference/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
12
tests/cases/compiler/declFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
23
tests/cases/compiler/declFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
34
tests/cases/compiler/declFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
45
tests/cases/compiler/declFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
56

67

8+
!!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
79
==== tests/cases/compiler/client.ts (0 errors) ====
810
///<reference path="declFile.d.ts"/>
911
var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file

0 commit comments

Comments
 (0)