@@ -27,7 +27,7 @@ import incrspace = require( './index' );
27
27
incrspace ( 0 , 10 ) ; // $ExpectType number[]
28
28
}
29
29
30
- // The function does not compile if provided values other than two numbers for the first two parameters...
30
+ // The compiler throws an error if the function is provided values other than two numbers for the first two parameters...
31
31
{
32
32
incrspace ( true , 10 ) ; // $ExpectError
33
33
incrspace ( false , 10 ) ; // $ExpectError
@@ -44,7 +44,7 @@ import incrspace = require( './index' );
44
44
incrspace ( 8 , ( x : number ) : number => x ) ; // $ExpectError
45
45
}
46
46
47
- // The function does not compile if provided a value other than a number for the third parameter...
47
+ // The compiler throws an error if the function is provided a value other than a number for the third parameter...
48
48
{
49
49
incrspace ( 3 , 20 , true ) ; // $ExpectError
50
50
incrspace ( 4 , 20 , false ) ; // $ExpectError
@@ -53,7 +53,7 @@ import incrspace = require( './index' );
53
53
incrspace ( 9 , 20 , ( x : number ) : number => x ) ; // $ExpectError
54
54
}
55
55
56
- // The function does not compile if provided insufficient arguments...
56
+ // The compiler throws an error if the function is provided insufficient arguments...
57
57
{
58
58
incrspace ( ) ; // $ExpectError
59
59
incrspace ( 3 ) ; // $ExpectError
0 commit comments