TypeScript/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.errors.txt
2014-09-12 13:35:07 -07:00

17 lines
630 B
Plaintext

tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedEnums.ts(10,11): error TS2339: Property 'Day' does not exist on type 'typeof A'.
==== tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedEnums.ts (1 errors) ====
module A {
export enum Color { Red, Blue }
enum Day { Monday, Tuesday }
}
// not an error since exported
var a: A.Color = A.Color.Red;
// error not exported
var b = A.Day.Monday;
~~~
!!! error TS2339: Property 'Day' does not exist on type 'typeof A'.