Skip to content

Commit 74a784c

Browse files
Accepted baselines.
1 parent 52a96ac commit 74a784c

11 files changed

+27
-78
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
tests/cases/compiler/defaultValueInFunctionTypes.ts(1,9): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
2+
tests/cases/compiler/defaultValueInFunctionTypes.ts(2,11): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
23

34

4-
==== tests/cases/compiler/defaultValueInFunctionTypes.ts (1 errors) ====
5+
==== tests/cases/compiler/defaultValueInFunctionTypes.ts (2 errors) ====
56
var x: (a: number = 1) => number;
67
~~~~~~~~~~~~~
78
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
8-
var y = <(a : string = "") => any>(undefined)
9+
var y = <(a : string = "") => any>(undefined)
10+
~~~~~~~~~~~~~~~
11+
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions01.ts(2,11): error TS2300: Duplicate identifier 'a'.
2+
tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions01.ts(2,22): error TS2300: Duplicate identifier 'a'.
3+
4+
5+
==== tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions01.ts (2 errors) ====
6+
7+
let x = <{a: number; a: number}>{};
8+
~
9+
!!! error TS2300: Duplicate identifier 'a'.
10+
~
11+
!!! error TS2300: Duplicate identifier 'a'.

tests/baselines/reference/duplicatePropertiesInTypeAssertions01.symbols

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/baselines/reference/duplicatePropertiesInTypeAssertions01.types

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions02.ts(2,16): error TS2300: Duplicate identifier 'a'.
2+
tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions02.ts(2,27): error TS2300: Duplicate identifier 'a'.
3+
4+
5+
==== tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions02.ts (2 errors) ====
6+
7+
let x = {} as {a: number; a: number};
8+
~
9+
!!! error TS2300: Duplicate identifier 'a'.
10+
~
11+
!!! error TS2300: Duplicate identifier 'a'.

tests/baselines/reference/duplicatePropertiesInTypeAssertions02.symbols

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/baselines/reference/duplicatePropertiesInTypeAssertions02.types

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/baselines/reference/emptyTuplesTypeAssertion01.symbols

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/baselines/reference/emptyTuplesTypeAssertion01.types

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/baselines/reference/emptyTuplesTypeAssertion02.symbols

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)