mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accepting new baselines
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
tests/cases/compiler/typeParameterConstraints1.ts(6,25): error TS2304: Cannot find name 'hm'.
|
||||
tests/cases/compiler/typeParameterConstraints1.ts(9,25): error TS1110: Type expected.
|
||||
tests/cases/compiler/typeParameterConstraints1.ts(10,26): error TS1110: Type expected.
|
||||
tests/cases/compiler/typeParameterConstraints1.ts(11,26): error TS1110: Type expected.
|
||||
tests/cases/compiler/typeParameterConstraints1.ts(12,26): error TS2304: Cannot find name 'undefined'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/typeParameterConstraints1.ts (5 errors) ====
|
||||
==== tests/cases/compiler/typeParameterConstraints1.ts (3 errors) ====
|
||||
function foo1<T extends any>(test: T) { }
|
||||
function foo2<T extends number>(test: T) { }
|
||||
function foo3<T extends string>(test: T) { }
|
||||
@@ -23,9 +21,5 @@ tests/cases/compiler/typeParameterConstraints1.ts(12,26): error TS2304: Cannot f
|
||||
~
|
||||
!!! error TS1110: Type expected.
|
||||
function foo11<T extends null> (test: T) { }
|
||||
~~~~
|
||||
!!! error TS1110: Type expected.
|
||||
function foo12<T extends undefined>(test: T) { }
|
||||
~~~~~~~~~
|
||||
!!! error TS2304: Cannot find name 'undefined'.
|
||||
function foo13<T extends void>(test: T) { }
|
||||
Reference in New Issue
Block a user