Clean up comments in tests

This commit is contained in:
Nathan Shively-Sanders 2017-05-15 10:38:51 -07:00
parent b61eaf70a1
commit 4c80aa17b3
3 changed files with 10 additions and 44 deletions

View File

@ -1,32 +1,22 @@
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(40,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(30,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(41,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(31,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(42,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(32,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(43,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(33,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(44,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(34,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(45,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(35,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(46,1): error TS2346: Supplied parameters do not match any signature of call target.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(46,11): error TS2461: Type '(a?: number, b?: number) => void' is not an array type.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(47,1): error TS2346: Supplied parameters do not match any signature of call target.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(48,1): error TS2346: Supplied parameters do not match any signature of call target.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(36,1): error TS2346: Supplied parameters do not match any signature of call target.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(36,11): error TS2461: Type '(a?: number, b?: number) => void' is not an array type.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(37,1): error TS2346: Supplied parameters do not match any signature of call target.
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(38,1): error TS2346: Supplied parameters do not match any signature of call target.
==== tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts (10 errors) ====
// Desired semantics: take type of array that is spread,
// allow it to be applied to a
// *trailing* set of optional parameters whose types match.
// Length is *not* checked, the parameters it's applied to just have to be optional.
// that means that tuples are non-starters because their array element type
// is a union like string | number.
// with exceptions for JS functions that use arguments, or maybe all JS functions
declare function all(a?: number, b?: number): void;
declare function weird(a?: number | string, b?: number | string): void;
declare function prefix(s: string, a?: number, b?: number): void;

View File

@ -1,14 +1,4 @@
//// [callWithSpread2.ts]
// Desired semantics: take type of array that is spread,
// allow it to be applied to a
// *trailing* set of optional parameters whose types match.
// Length is *not* checked, the parameters it's applied to just have to be optional.
// that means that tuples are non-starters because their array element type
// is a union like string | number.
// with exceptions for JS functions that use arguments, or maybe all JS functions
declare function all(a?: number, b?: number): void;
declare function weird(a?: number | string, b?: number | string): void;
declare function prefix(s: string, a?: number, b?: number): void;
@ -50,10 +40,6 @@ prefix(...tuple)
//// [callWithSpread2.js]
// Desired semantics: take type of array that is spread,
// allow it to be applied to a
// *trailing* set of optional parameters whose types match.
// Length is *not* checked, the parameters it's applied to just have to be optional.
// good
all.apply(void 0, ns);
weird.apply(void 0, ns);

View File

@ -1,13 +1,3 @@
// Desired semantics: take type of array that is spread,
// allow it to be applied to a
// *trailing* set of optional parameters whose types match.
// Length is *not* checked, the parameters it's applied to just have to be optional.
// that means that tuples are non-starters because their array element type
// is a union like string | number.
// with exceptions for JS functions that use arguments, or maybe all JS functions
declare function all(a?: number, b?: number): void;
declare function weird(a?: number | string, b?: number | string): void;
declare function prefix(s: string, a?: number, b?: number): void;