Test:type alias merged w/interface-namespace errors

Previously it crashed when it assumed valueDeclaration was always
defined.
This commit is contained in:
Nathan Shively-Sanders 2017-04-18 16:19:05 -07:00
parent effa032d5d
commit eba15f41e4
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,12 @@
tests/cases/compiler/final.ts(1,6): error TS2649: Cannot augment module 'A' with value exports because it resolves to a non-module entity.
==== tests/cases/compiler/initial.ts (0 errors) ====
interface A { }
namespace A {}
==== tests/cases/compiler/final.ts (1 errors) ====
type A = {}
~
!!! error TS2649: Cannot augment module 'A' with value exports because it resolves to a non-module entity.

View File

@ -0,0 +1,12 @@
//// [tests/cases/compiler/noSymbolForMergeCrash.ts] ////
//// [initial.ts]
interface A { }
namespace A {}
//// [final.ts]
type A = {}
//// [initial.js]
//// [final.js]

View File

@ -0,0 +1,6 @@
// @Filename: initial.ts
interface A { }
namespace A {}
// @Filename: final.ts
type A = {}