==== tests/cases/compiler/augmentedTypesFunction.ts (6 errors) ==== // function then var function y1() { } var y1 = 1; // error ~~ !!! Duplicate identifier 'y1'. // function then function function y2() { } function y2() { } // error ~~~~~~~~~~~~~~~~~ !!! Duplicate function implementation. function y2a() { } var y2a = () => { } // error ~~~ !!! Duplicate identifier 'y2a'. // function then class function y3() { } class y3 { } // error ~~ !!! Duplicate identifier 'y3'. function y3a() { } class y3a { public foo() { } } // error ~~~ !!! Duplicate identifier 'y3a'. // function then enum function y4() { } enum y4 { One } // error ~~ !!! Duplicate identifier 'y4'. // function then internal module function y5() { } module y5 { } // ok since module is not instantiated function y5a() { } module y5a { var y = 2; } // should be an error function y5b() { } module y5b { export var y = 3; } // should be an error function y5c() { } module y5c { export interface I { foo(): void } } // should be an error // function then import, messes with other errors //function y6() { } //import y6 = require('');