Skip to content

Commit 049b336

Browse files
committed
Accept new baselines
1 parent 35addce commit 049b336

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/compiler/inheritFromGenericTypeParameter.ts(1,20): error TS2693: 'T' only refers to a type, but is being used as a value here.
1+
tests/cases/compiler/inheritFromGenericTypeParameter.ts(1,20): error TS2304: Cannot find name 'T'.
22
tests/cases/compiler/inheritFromGenericTypeParameter.ts(2,24): error TS2312: An interface may only extend a class or another interface.
33

44

55
==== tests/cases/compiler/inheritFromGenericTypeParameter.ts (2 errors) ====
66
class C<T> extends T { }
77
~
8-
!!! error TS2693: 'T' only refers to a type, but is being used as a value here.
8+
!!! error TS2304: Cannot find name 'T'.
99
interface I<T> extends T { }
1010
~
1111
!!! error TS2312: An interface may only extend a class or another interface.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/compiler/typeParameterAsBaseClass.ts(1,20): error TS2693: 'T' only refers to a type, but is being used as a value here.
1+
tests/cases/compiler/typeParameterAsBaseClass.ts(1,20): error TS2304: Cannot find name 'T'.
22
tests/cases/compiler/typeParameterAsBaseClass.ts(2,24): error TS2422: A class may only implement another class or interface.
33

44

55
==== tests/cases/compiler/typeParameterAsBaseClass.ts (2 errors) ====
66
class C<T> extends T {}
77
~
8-
!!! error TS2693: 'T' only refers to a type, but is being used as a value here.
8+
!!! error TS2304: Cannot find name 'T'.
99
class C2<T> implements T {}
1010
~
1111
!!! error TS2422: A class may only implement another class or interface.

tests/baselines/reference/typeParameterAsBaseType.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(4,20): error TS2693: 'T' only refers to a type, but is being used as a value here.
2-
tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(5,24): error TS2693: 'U' only refers to a type, but is being used as a value here.
1+
tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(4,20): error TS2304: Cannot find name 'T'.
2+
tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(5,24): error TS2304: Cannot find name 'U'.
33
tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(7,24): error TS2312: An interface may only extend a class or another interface.
44
tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(8,28): error TS2312: An interface may only extend a class or another interface.
55

@@ -10,10 +10,10 @@ tests/cases/conformance/types/typeParameters/typeParameterAsBaseType.ts(8,28): e
1010

1111
class C<T> extends T { }
1212
~
13-
!!! error TS2693: 'T' only refers to a type, but is being used as a value here.
13+
!!! error TS2304: Cannot find name 'T'.
1414
class C2<T, U> extends U { }
1515
~
16-
!!! error TS2693: 'U' only refers to a type, but is being used as a value here.
16+
!!! error TS2304: Cannot find name 'U'.
1717

1818
interface I<T> extends T { }
1919
~

0 commit comments

Comments
 (0)