swc/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedEnums.ts

11 lines
189 B
TypeScript

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;