115 lines
No EOL
6.2 KiB
Text
115 lines
No EOL
6.2 KiB
Text
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(7,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(13,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(13,23): error TS7006: Parameter 'y' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(13,26): error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(16,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(16,31): error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(19,20): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(22,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(22,23): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(25,20): error TS7006: Parameter 'x1' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(26,32): error TS7006: Parameter 'y2' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(27,20): error TS7006: Parameter 'x3' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(27,24): error TS7006: Parameter 'y3' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(33,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(36,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(36,21): error TS7006: Parameter 'y' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(36,24): error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(39,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(39,29): error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(42,18): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(45,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(45,21): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
|
|
|
|
==== tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts (22 errors) ====
|
|
|
|
declare module D_M {
|
|
// No implicit-'any' errors.
|
|
function dm_f1(): void;
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f2(x): void;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f3(x: any): void;
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f4(x, y, z): void;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
~
|
|
!!! error TS7006: Parameter 'y' implicitly has an 'any' type.
|
|
~
|
|
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f5(x, y: any, z): void;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
~
|
|
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f6(...r): void;
|
|
~~~~
|
|
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f7(x, ...r): void;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
~~~~
|
|
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
|
|
// No implicit-'any' errors.
|
|
function dm_f8(x1, y1: number): any;
|
|
~~
|
|
!!! error TS7006: Parameter 'x1' implicitly has an 'any' type.
|
|
function dm_f8(x2: string, y2): any;
|
|
~~
|
|
!!! error TS7006: Parameter 'y2' implicitly has an 'any' type.
|
|
function dm_f8(x3, y3): any;
|
|
~~
|
|
!!! error TS7006: Parameter 'x3' implicitly has an 'any' type.
|
|
~~
|
|
!!! error TS7006: Parameter 'y3' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
var dm_f9: () => string;
|
|
|
|
// No implicit-'any' errors.
|
|
var dm_f10: (x) => string;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
var dm_f11: (x, y, z) => string;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
~
|
|
!!! error TS7006: Parameter 'y' implicitly has an 'any' type.
|
|
~
|
|
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
var dm_f12: (x, y: any, z) => string;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
~
|
|
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
|
|
|
|
// No implicit-'any' errors.
|
|
var dm_f13: (...r) => string;
|
|
~~~~
|
|
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
|
|
// No implicit-'any' errors.
|
|
var dm_f14: (x, ...r) => string;
|
|
~
|
|
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
|
|
~~~~
|
|
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
|
|
} |