14 lines
No EOL
439 B
Text
14 lines
No EOL
439 B
Text
==== 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;
|
|
~~~
|
|
!!! Property 'Day' does not exist on type 'typeof A'.
|
|
|