31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
tests/cases/conformance/es6/modules/m1.ts(2,22): error TS2300: Duplicate identifier 'foo'.
|
|
tests/cases/conformance/es6/modules/m1.ts(6,25): error TS2300: Duplicate identifier 'bar'.
|
|
tests/cases/conformance/es6/modules/m1.ts(11,1): error TS2300: Duplicate identifier 'default'.
|
|
tests/cases/conformance/es6/modules/m2.ts(3,1): error TS2348: Value of type 'typeof foo' is not callable. Did you mean to include 'new'?
|
|
|
|
|
|
==== tests/cases/conformance/es6/modules/m1.ts (3 errors) ====
|
|
|
|
export default class foo {
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'foo'.
|
|
|
|
}
|
|
|
|
export default function bar() {
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'bar'.
|
|
|
|
}
|
|
|
|
var x = 10;
|
|
export default x;
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'default'.
|
|
|
|
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
|
import Entity from "m1"
|
|
|
|
Entity();
|
|
~~~~~~~~
|
|
!!! error TS2348: Value of type 'typeof foo' is not callable. Did you mean to include 'new'? |