mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
106 lines
5.1 KiB
Plaintext
106 lines
5.1 KiB
Plaintext
//// [tests/cases/conformance/enums/enumMergingErrors.ts] ////
|
|
|
|
=== enumMergingErrors.ts ===
|
|
// Enum with constant, computed, constant members split across 3 declarations with the same root module
|
|
namespace M {
|
|
>M : Symbol(M, Decl(enumMergingErrors.ts, 0, 0), Decl(enumMergingErrors.ts, 5, 1), Decl(enumMergingErrors.ts, 10, 1))
|
|
|
|
export enum E1 { A = 0 }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 1, 13), Decl(enumMergingErrors.ts, 6, 13), Decl(enumMergingErrors.ts, 11, 13))
|
|
>A : Symbol(E1.A, Decl(enumMergingErrors.ts, 2, 20))
|
|
|
|
export enum E2 { C }
|
|
>E2 : Symbol(E2, Decl(enumMergingErrors.ts, 2, 28), Decl(enumMergingErrors.ts, 7, 39), Decl(enumMergingErrors.ts, 12, 24))
|
|
>C : Symbol(E2.C, Decl(enumMergingErrors.ts, 3, 20))
|
|
|
|
export enum E3 { A = 0 }
|
|
>E3 : Symbol(E3, Decl(enumMergingErrors.ts, 3, 24), Decl(enumMergingErrors.ts, 8, 39), Decl(enumMergingErrors.ts, 13, 28))
|
|
>A : Symbol(E3.A, Decl(enumMergingErrors.ts, 4, 20))
|
|
}
|
|
namespace M {
|
|
>M : Symbol(M, Decl(enumMergingErrors.ts, 0, 0), Decl(enumMergingErrors.ts, 5, 1), Decl(enumMergingErrors.ts, 10, 1))
|
|
|
|
export enum E1 { B = 'foo'.length }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 1, 13), Decl(enumMergingErrors.ts, 6, 13), Decl(enumMergingErrors.ts, 11, 13))
|
|
>B : Symbol(E1.B, Decl(enumMergingErrors.ts, 7, 20))
|
|
>'foo'.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
|
|
export enum E2 { B = 'foo'.length }
|
|
>E2 : Symbol(E2, Decl(enumMergingErrors.ts, 2, 28), Decl(enumMergingErrors.ts, 7, 39), Decl(enumMergingErrors.ts, 12, 24))
|
|
>B : Symbol(E2.B, Decl(enumMergingErrors.ts, 8, 20))
|
|
>'foo'.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
|
|
export enum E3 { C }
|
|
>E3 : Symbol(E3, Decl(enumMergingErrors.ts, 3, 24), Decl(enumMergingErrors.ts, 8, 39), Decl(enumMergingErrors.ts, 13, 28))
|
|
>C : Symbol(E3.C, Decl(enumMergingErrors.ts, 9, 20))
|
|
}
|
|
namespace M {
|
|
>M : Symbol(M, Decl(enumMergingErrors.ts, 0, 0), Decl(enumMergingErrors.ts, 5, 1), Decl(enumMergingErrors.ts, 10, 1))
|
|
|
|
export enum E1 { C }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 1, 13), Decl(enumMergingErrors.ts, 6, 13), Decl(enumMergingErrors.ts, 11, 13))
|
|
>C : Symbol(E1.C, Decl(enumMergingErrors.ts, 12, 20))
|
|
|
|
export enum E2 { A = 0 }
|
|
>E2 : Symbol(E2, Decl(enumMergingErrors.ts, 2, 28), Decl(enumMergingErrors.ts, 7, 39), Decl(enumMergingErrors.ts, 12, 24))
|
|
>A : Symbol(E2.A, Decl(enumMergingErrors.ts, 13, 20))
|
|
|
|
export enum E3 { B = 'foo'.length }
|
|
>E3 : Symbol(E3, Decl(enumMergingErrors.ts, 3, 24), Decl(enumMergingErrors.ts, 8, 39), Decl(enumMergingErrors.ts, 13, 28))
|
|
>B : Symbol(E3.B, Decl(enumMergingErrors.ts, 14, 20))
|
|
>'foo'.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
}
|
|
|
|
// Enum with no initializer in either declaration with constant members with the same root module
|
|
namespace M1 {
|
|
>M1 : Symbol(M1, Decl(enumMergingErrors.ts, 15, 1), Decl(enumMergingErrors.ts, 20, 1), Decl(enumMergingErrors.ts, 23, 1))
|
|
|
|
export enum E1 { A = 0 }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 18, 14), Decl(enumMergingErrors.ts, 21, 14), Decl(enumMergingErrors.ts, 24, 14))
|
|
>A : Symbol(E1.A, Decl(enumMergingErrors.ts, 19, 20))
|
|
}
|
|
namespace M1 {
|
|
>M1 : Symbol(M1, Decl(enumMergingErrors.ts, 15, 1), Decl(enumMergingErrors.ts, 20, 1), Decl(enumMergingErrors.ts, 23, 1))
|
|
|
|
export enum E1 { B }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 18, 14), Decl(enumMergingErrors.ts, 21, 14), Decl(enumMergingErrors.ts, 24, 14))
|
|
>B : Symbol(E1.B, Decl(enumMergingErrors.ts, 22, 20))
|
|
}
|
|
namespace M1 {
|
|
>M1 : Symbol(M1, Decl(enumMergingErrors.ts, 15, 1), Decl(enumMergingErrors.ts, 20, 1), Decl(enumMergingErrors.ts, 23, 1))
|
|
|
|
export enum E1 { C }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 18, 14), Decl(enumMergingErrors.ts, 21, 14), Decl(enumMergingErrors.ts, 24, 14))
|
|
>C : Symbol(E1.C, Decl(enumMergingErrors.ts, 25, 20))
|
|
}
|
|
|
|
|
|
// Enum with initializer in only one of three declarations with constant members with the same root module
|
|
namespace M2 {
|
|
>M2 : Symbol(M2, Decl(enumMergingErrors.ts, 26, 1), Decl(enumMergingErrors.ts, 32, 1), Decl(enumMergingErrors.ts, 35, 1))
|
|
|
|
export enum E1 { A }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 30, 14), Decl(enumMergingErrors.ts, 33, 14), Decl(enumMergingErrors.ts, 36, 14))
|
|
>A : Symbol(E1.A, Decl(enumMergingErrors.ts, 31, 20))
|
|
}
|
|
namespace M2 {
|
|
>M2 : Symbol(M2, Decl(enumMergingErrors.ts, 26, 1), Decl(enumMergingErrors.ts, 32, 1), Decl(enumMergingErrors.ts, 35, 1))
|
|
|
|
export enum E1 { B = 0 }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 30, 14), Decl(enumMergingErrors.ts, 33, 14), Decl(enumMergingErrors.ts, 36, 14))
|
|
>B : Symbol(E1.B, Decl(enumMergingErrors.ts, 34, 20))
|
|
}
|
|
namespace M2 {
|
|
>M2 : Symbol(M2, Decl(enumMergingErrors.ts, 26, 1), Decl(enumMergingErrors.ts, 32, 1), Decl(enumMergingErrors.ts, 35, 1))
|
|
|
|
export enum E1 { C }
|
|
>E1 : Symbol(E1, Decl(enumMergingErrors.ts, 30, 14), Decl(enumMergingErrors.ts, 33, 14), Decl(enumMergingErrors.ts, 36, 14))
|
|
>C : Symbol(E1.C, Decl(enumMergingErrors.ts, 37, 20))
|
|
}
|
|
|
|
|
|
|