Skip to content

Commit 471f6e0

Browse files
committed
Accepting new baselines
1 parent d71af8a commit 471f6e0

18 files changed

+57
-66
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(7,18): error TS2507: Base expression is not of a constructor function type.
2-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(8,18): error TS2507: Base expression is not of a constructor function type.
3-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(9,18): error TS2507: Base expression is not of a constructor function type.
4-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(10,18): error TS2507: Base expression is not of a constructor function type.
5-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(11,18): error TS2507: Base expression is not of a constructor function type.
6-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(12,18): error TS2507: Base expression is not of a constructor function type.
7-
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(13,18): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(7,18): error TS2507: Type 'undefined' is not a constructor function type.
2+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(8,18): error TS2507: Type 'boolean' is not a constructor function type.
3+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(9,18): error TS2507: Type 'boolean' is not a constructor function type.
4+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(10,18): error TS2507: Type 'number' is not a constructor function type.
5+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(11,18): error TS2507: Type 'string' is not a constructor function type.
6+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(12,18): error TS2507: Type '{}' is not a constructor function type.
7+
tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts(13,18): error TS2507: Type '() => void' is not a constructor function type.
88

99

1010
==== tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts (7 errors) ====
@@ -16,23 +16,23 @@ tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.t
1616

1717
class C1 extends undefined { }
1818
~~~~~~~~~
19-
!!! error TS2507: Base expression is not of a constructor function type.
19+
!!! error TS2507: Type 'undefined' is not a constructor function type.
2020
class C2 extends true { }
2121
~~~~
22-
!!! error TS2507: Base expression is not of a constructor function type.
22+
!!! error TS2507: Type 'boolean' is not a constructor function type.
2323
class C3 extends false { }
2424
~~~~~
25-
!!! error TS2507: Base expression is not of a constructor function type.
25+
!!! error TS2507: Type 'boolean' is not a constructor function type.
2626
class C4 extends 42 { }
2727
~~
28-
!!! error TS2507: Base expression is not of a constructor function type.
28+
!!! error TS2507: Type 'number' is not a constructor function type.
2929
class C5 extends "hello" { }
3030
~~~~~~~
31-
!!! error TS2507: Base expression is not of a constructor function type.
31+
!!! error TS2507: Type 'string' is not a constructor function type.
3232
class C6 extends x { }
3333
~
34-
!!! error TS2507: Base expression is not of a constructor function type.
34+
!!! error TS2507: Type '{}' is not a constructor function type.
3535
class C7 extends foo { }
3636
~~~
37-
!!! error TS2507: Base expression is not of a constructor function type.
37+
!!! error TS2507: Type '() => void' is not a constructor function type.
3838

tests/baselines/reference/classExtendingPrimitive.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
44
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(6,18): error TS2304: Cannot find name 'Void'.
55
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(7,19): error TS1109: Expression expected.
66
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(8,18): error TS2304: Cannot find name 'Null'.
7-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(10,18): error TS2507: Base expression is not of a constructor function type.
7+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(10,18): error TS2507: Type 'undefined' is not a constructor function type.
88
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(11,18): error TS2304: Cannot find name 'Undefined'.
9-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(14,18): error TS2507: Base expression is not of a constructor function type.
9+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(14,18): error TS2507: Type 'typeof E' is not a constructor function type.
1010

1111

1212
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts (9 errors) ====
@@ -33,12 +33,12 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
3333
class C5a extends null { }
3434
class C6 extends undefined { }
3535
~~~~~~~~~
36-
!!! error TS2507: Base expression is not of a constructor function type.
36+
!!! error TS2507: Type 'undefined' is not a constructor function type.
3737
class C7 extends Undefined { }
3838
~~~~~~~~~
3939
!!! error TS2304: Cannot find name 'Undefined'.
4040

4141
enum E { A }
4242
class C8 extends E { }
4343
~
44-
!!! error TS2507: Base expression is not of a constructor function type.
44+
!!! error TS2507: Type 'typeof E' is not a constructor function type.

tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/classExtendsClauseClassMergedWithModuleNotReferingConstructor.ts(10,21): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/compiler/classExtendsClauseClassMergedWithModuleNotReferingConstructor.ts(10,21): error TS2507: Type 'number' is not a constructor function type.
22

33

44
==== tests/cases/compiler/classExtendsClauseClassMergedWithModuleNotReferingConstructor.ts (1 errors) ====
@@ -13,7 +13,7 @@ tests/cases/compiler/classExtendsClauseClassMergedWithModuleNotReferingConstruct
1313
var A = 1;
1414
class B extends A {
1515
~
16-
!!! error TS2507: Base expression is not of a constructor function type.
16+
!!! error TS2507: Type 'number' is not a constructor function type.
1717
b: string;
1818
}
1919
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/classExtendsClauseClassNotReferringConstructor.ts(4,21): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/compiler/classExtendsClauseClassNotReferringConstructor.ts(4,21): error TS2507: Type 'number' is not a constructor function type.
22

33

44
==== tests/cases/compiler/classExtendsClauseClassNotReferringConstructor.ts (1 errors) ====
@@ -7,6 +7,6 @@ tests/cases/compiler/classExtendsClauseClassNotReferringConstructor.ts(4,21): er
77
var A = 1;
88
class B extends A { b: string; }
99
~
10-
!!! error TS2507: Base expression is not of a constructor function type.
10+
!!! error TS2507: Type 'number' is not a constructor function type.
1111
}
1212

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(4,17): error TS2304: Cannot find name 'I'.
2-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(6,18): error TS2507: Base expression is not of a constructor function type.
2+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(6,18): error TS2507: Type '{ foo: any; }' is not a constructor function type.
33
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(6,25): error TS2304: Cannot find name 'string'.
44
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(6,31): error TS1005: ',' expected.
5-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(8,18): error TS2507: Base expression is not of a constructor function type.
6-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(11,18): error TS2507: Base expression is not of a constructor function type.
7-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(14,18): error TS2507: Base expression is not of a constructor function type.
8-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(16,18): error TS2507: Base expression is not of a constructor function type.
5+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(8,18): error TS2507: Type '{ foo: string; }' is not a constructor function type.
6+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(11,18): error TS2507: Type 'typeof M' is not a constructor function type.
7+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(14,18): error TS2507: Type '() => void' is not a constructor function type.
8+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts(16,18): error TS2507: Type 'undefined[]' is not a constructor function type.
99

1010

1111
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts (8 errors) ====
@@ -18,26 +18,26 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
1818

1919
class C2 extends { foo: string; } { } // error
2020
~~~~~~~~~~~~~~~~
21-
!!! error TS2507: Base expression is not of a constructor function type.
21+
!!! error TS2507: Type '{ foo: any; }' is not a constructor function type.
2222
~~~~~~
2323
!!! error TS2304: Cannot find name 'string'.
2424
~
2525
!!! error TS1005: ',' expected.
2626
var x: { foo: string; }
2727
class C3 extends x { } // error
2828
~
29-
!!! error TS2507: Base expression is not of a constructor function type.
29+
!!! error TS2507: Type '{ foo: string; }' is not a constructor function type.
3030

3131
module M { export var x = 1; }
3232
class C4 extends M { } // error
3333
~
34-
!!! error TS2507: Base expression is not of a constructor function type.
34+
!!! error TS2507: Type 'typeof M' is not a constructor function type.
3535

3636
function foo() { }
3737
class C5 extends foo { } // error
3838
~~~
39-
!!! error TS2507: Base expression is not of a constructor function type.
39+
!!! error TS2507: Type '() => void' is not a constructor function type.
4040

4141
class C6 extends []{ } // error
4242
~~
43-
!!! error TS2507: Base expression is not of a constructor function type.
43+
!!! error TS2507: Type 'undefined[]' is not a constructor function type.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,18): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,18): error TS2507: Type '{ foo: any; }' is not a constructor function type.
22
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,25): error TS2304: Cannot find name 'string'.
33
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(1,31): error TS1005: ',' expected.
4-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(3,18): error TS2507: Base expression is not of a constructor function type.
4+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts(3,18): error TS2507: Type 'undefined[]' is not a constructor function type.
55

66

77
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts (4 errors) ====
88
class C2 extends { foo: string; } { } // error
99
~~~~~~~~~~~~~~~~
10-
!!! error TS2507: Base expression is not of a constructor function type.
10+
!!! error TS2507: Type '{ foo: any; }' is not a constructor function type.
1111
~~~~~~
1212
!!! error TS2304: Cannot find name 'string'.
1313
~
1414
!!! error TS1005: ',' expected.
1515

1616
class C6 extends []{ } // error
1717
~~
18-
!!! error TS2507: Base expression is not of a constructor function type.
18+
!!! error TS2507: Type 'undefined[]' is not a constructor function type.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsShadowedConstructorFunction.ts(5,21): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsShadowedConstructorFunction.ts(5,21): error TS2507: Type 'number' is not a constructor function type.
22

33

44
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsShadowedConstructorFunction.ts (1 errors) ====
@@ -8,7 +8,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
88
var C = 1;
99
class D extends C { // error, C must evaluate to constructor function
1010
~
11-
!!! error TS2507: Base expression is not of a constructor function type.
11+
!!! error TS2507: Type 'number' is not a constructor function type.
1212
bar: string;
1313
}
1414
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts(5,17): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts(5,17): error TS2507: Type '() => void' is not a constructor function type.
22

33

44
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts (1 errors) ====
@@ -8,4 +8,4 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
88

99
class C extends foo { } // error, cannot extend it though
1010
~~~
11-
!!! error TS2507: Base expression is not of a constructor function type.
11+
!!! error TS2507: Type '() => void' is not a constructor function type.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/extendNonClassSymbol2.ts(5,17): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/compiler/extendNonClassSymbol2.ts(5,17): error TS2507: Type '() => void' is not a constructor function type.
22

33

44
==== tests/cases/compiler/extendNonClassSymbol2.ts (1 errors) ====
@@ -8,4 +8,4 @@ tests/cases/compiler/extendNonClassSymbol2.ts(5,17): error TS2507: Base expressi
88
var x = new Foo(); // legal, considered a constructor function
99
class C extends Foo {} // error, could not find symbol Foo
1010
~~~
11-
!!! error TS2507: Base expression is not of a constructor function type.
11+
!!! error TS2507: Type '() => void' is not a constructor function type.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts(2,21): error TS2507: Base expression is not of a constructor function type.
1+
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts(2,21): error TS2507: Type 'any' is not a constructor function type.
22
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts(2,22): error TS1163: A 'yield' expression is only allowed in a generator body.
33

44

55
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts (2 errors) ====
66
function* g() {
77
class C extends (yield 0) { }
88
~~~~~~~~~
9-
!!! error TS2507: Base expression is not of a constructor function type.
9+
!!! error TS2507: Type 'any' is not a constructor function type.
1010
~~~~~
1111
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
1212
}

0 commit comments

Comments
 (0)