26 lines
1.4 KiB
Text
26 lines
1.4 KiB
Text
|
tests/cases/compiler/es6ImportDefaultBindingMergeErrors_1.ts(5,8): error TS2440: Import declaration conflicts with local declaration of 'defaultBinding2'
|
||
|
tests/cases/compiler/es6ImportDefaultBindingMergeErrors_1.ts(7,8): error TS2300: Duplicate identifier 'defaultBinding3'.
|
||
|
tests/cases/compiler/es6ImportDefaultBindingMergeErrors_1.ts(8,8): error TS2300: Duplicate identifier 'defaultBinding3'.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/es6ImportDefaultBindingMergeErrors_0.ts (0 errors) ====
|
||
|
|
||
|
var a = 10;
|
||
|
export = a;
|
||
|
|
||
|
==== tests/cases/compiler/es6ImportDefaultBindingMergeErrors_1.ts (3 errors) ====
|
||
|
import defaultBinding from "es6ImportDefaultBindingMergeErrors_0";
|
||
|
interface defaultBinding { // This is ok
|
||
|
}
|
||
|
var x = defaultBinding;
|
||
|
import defaultBinding2 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||
|
~~~~~~~~~~~~~~~
|
||
|
!!! error TS2440: Import declaration conflicts with local declaration of 'defaultBinding2'
|
||
|
var defaultBinding2 = "hello world";
|
||
|
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||
|
~~~~~~~~~~~~~~~
|
||
|
!!! error TS2300: Duplicate identifier 'defaultBinding3'.
|
||
|
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // SHould be error
|
||
|
~~~~~~~~~~~~~~~
|
||
|
!!! error TS2300: Duplicate identifier 'defaultBinding3'.
|
||
|
|