2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/externalModules/foo1.ts(3,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
2015-03-02 21:21:53 +01:00
|
|
|
tests/cases/conformance/externalModules/foo1.ts(3,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo1.ts(4,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo2.ts(3,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo2.ts(4,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo3.ts(7,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo3.ts(8,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo4.ts(1,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo4.ts(8,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo5.ts(4,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo5.ts(5,1): error TS2300: Duplicate identifier 'default'.
|
|
|
|
tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2300: Duplicate identifier 'default'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/externalModules/foo1.ts (3 errors) ====
|
|
|
|
var x = 10;
|
|
|
|
var y = 20;
|
|
|
|
export = x;
|
|
|
|
~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export = y;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo2.ts (2 errors) ====
|
|
|
|
var x = 10;
|
|
|
|
class y {};
|
|
|
|
export = x;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export = y;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo3.ts (2 errors) ====
|
|
|
|
module x {
|
|
|
|
export var x = 10;
|
|
|
|
}
|
|
|
|
class y {
|
|
|
|
y: number;
|
|
|
|
}
|
|
|
|
export = x;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export = y;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo4.ts (2 errors) ====
|
|
|
|
export = x;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
function x(){
|
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
function y(){
|
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
export = y;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo5.ts (3 errors) ====
|
|
|
|
var x = 5;
|
|
|
|
var y = "test";
|
|
|
|
var z = {};
|
|
|
|
export = x;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export = y;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export = z;
|
|
|
|
~~~~~~~~~~~
|
2015-03-02 21:21:53 +01:00
|
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|