mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
707 B
Plaintext
27 lines
707 B
Plaintext
enumBasics3.ts(5,13): error TS2339: Property 'a' does not exist on type 'E1.a'.
|
|
enumBasics3.ts(14,20): error TS2339: Property 'a' does not exist on type 'E1.a'.
|
|
|
|
|
|
==== enumBasics3.ts (2 errors) ====
|
|
namespace M {
|
|
export namespace N {
|
|
export enum E1 {
|
|
a = 1,
|
|
b = a.a, // should error
|
|
~
|
|
!!! error TS2339: Property 'a' does not exist on type 'E1.a'.
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace M {
|
|
export namespace N {
|
|
export enum E2 {
|
|
b = M.N.E1.a,
|
|
c = M.N.E1.a.a, // should error
|
|
~
|
|
!!! error TS2339: Property 'a' does not exist on type 'E1.a'.
|
|
}
|
|
}
|
|
}
|
|
|