2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/missingRequiredDeclare.d.ts(1,1): error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
|
2014-12-17 04:11:07 +01:00
|
|
|
tests/cases/compiler/missingRequiredDeclare.d.ts(1,7): error TS1039: Initializers are not allowed in ambient contexts.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-12-17 04:11:07 +01:00
|
|
|
==== tests/cases/compiler/missingRequiredDeclare.d.ts (2 errors) ====
|
2014-08-22 03:39:46 +02:00
|
|
|
var x = 1;
|
|
|
|
~~~
|
2014-12-17 04:11:07 +01:00
|
|
|
!!! error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
|
|
|
|
~
|
|
|
|
!!! error TS1039: Initializers are not allowed in ambient contexts.
|