mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
70 lines
3.2 KiB
Plaintext
70 lines
3.2 KiB
Plaintext
//// [tests/cases/compiler/propertyAndAccessorMerging.ts] ////
|
|
|
|
=== propertyAndAccessorMerging.ts ===
|
|
// https://github.com/microsoft/typescript-go/issues/3613
|
|
|
|
interface EntityMetadata1 {
|
|
>EntityMetadata1 : Symbol(EntityMetadata1, Decl(propertyAndAccessorMerging.ts, 0, 0), Decl(propertyAndAccessorMerging.ts, 5, 1))
|
|
|
|
get tableName(): string;
|
|
>tableName : Symbol(EntityMetadata1.tableName, Decl(propertyAndAccessorMerging.ts, 2, 27), Decl(propertyAndAccessorMerging.ts, 3, 28), Decl(propertyAndAccessorMerging.ts, 7, 27))
|
|
|
|
set tableName(name: string);
|
|
>tableName : Symbol(EntityMetadata1.tableName, Decl(propertyAndAccessorMerging.ts, 2, 27), Decl(propertyAndAccessorMerging.ts, 3, 28), Decl(propertyAndAccessorMerging.ts, 7, 27))
|
|
>name : Symbol(name, Decl(propertyAndAccessorMerging.ts, 4, 18))
|
|
}
|
|
|
|
interface EntityMetadata1 {
|
|
>EntityMetadata1 : Symbol(EntityMetadata1, Decl(propertyAndAccessorMerging.ts, 0, 0), Decl(propertyAndAccessorMerging.ts, 5, 1))
|
|
|
|
tableName: string;
|
|
>tableName : Symbol(EntityMetadata1.tableName, Decl(propertyAndAccessorMerging.ts, 2, 27), Decl(propertyAndAccessorMerging.ts, 3, 28), Decl(propertyAndAccessorMerging.ts, 7, 27))
|
|
}
|
|
|
|
interface EntityMetadata2 {
|
|
>EntityMetadata2 : Symbol(EntityMetadata2, Decl(propertyAndAccessorMerging.ts, 9, 1), Decl(propertyAndAccessorMerging.ts, 13, 1))
|
|
|
|
tableName: string;
|
|
>tableName : Symbol(EntityMetadata2.tableName, Decl(propertyAndAccessorMerging.ts, 11, 27), Decl(propertyAndAccessorMerging.ts, 15, 27), Decl(propertyAndAccessorMerging.ts, 16, 28))
|
|
}
|
|
|
|
interface EntityMetadata2 {
|
|
>EntityMetadata2 : Symbol(EntityMetadata2, Decl(propertyAndAccessorMerging.ts, 9, 1), Decl(propertyAndAccessorMerging.ts, 13, 1))
|
|
|
|
get tableName(): string;
|
|
>tableName : Symbol(EntityMetadata2.tableName, Decl(propertyAndAccessorMerging.ts, 11, 27), Decl(propertyAndAccessorMerging.ts, 15, 27), Decl(propertyAndAccessorMerging.ts, 16, 28))
|
|
|
|
set tableName(name: string);
|
|
>tableName : Symbol(EntityMetadata2.tableName, Decl(propertyAndAccessorMerging.ts, 11, 27), Decl(propertyAndAccessorMerging.ts, 15, 27), Decl(propertyAndAccessorMerging.ts, 16, 28))
|
|
>name : Symbol(name, Decl(propertyAndAccessorMerging.ts, 17, 18))
|
|
}
|
|
|
|
class Foo1 {
|
|
>Foo1 : Symbol(Foo1, Decl(propertyAndAccessorMerging.ts, 18, 1), Decl(propertyAndAccessorMerging.ts, 22, 1))
|
|
|
|
accessor x: string = "abc"
|
|
>x : Symbol(Foo1.x, Decl(propertyAndAccessorMerging.ts, 20, 12), Decl(propertyAndAccessorMerging.ts, 24, 16))
|
|
}
|
|
|
|
interface Foo1 {
|
|
>Foo1 : Symbol(Foo1, Decl(propertyAndAccessorMerging.ts, 18, 1), Decl(propertyAndAccessorMerging.ts, 22, 1))
|
|
|
|
x: string
|
|
>x : Symbol(Foo1.x, Decl(propertyAndAccessorMerging.ts, 20, 12), Decl(propertyAndAccessorMerging.ts, 24, 16))
|
|
}
|
|
|
|
interface Foo2 {
|
|
>Foo2 : Symbol(Foo2, Decl(propertyAndAccessorMerging.ts, 26, 1), Decl(propertyAndAccessorMerging.ts, 30, 1))
|
|
|
|
x: string
|
|
>x : Symbol(Foo2.x, Decl(propertyAndAccessorMerging.ts, 28, 16), Decl(propertyAndAccessorMerging.ts, 32, 12))
|
|
}
|
|
|
|
class Foo2 {
|
|
>Foo2 : Symbol(Foo2, Decl(propertyAndAccessorMerging.ts, 26, 1), Decl(propertyAndAccessorMerging.ts, 30, 1))
|
|
|
|
accessor x: string = "abc"
|
|
>x : Symbol(Foo2.x, Decl(propertyAndAccessorMerging.ts, 28, 16), Decl(propertyAndAccessorMerging.ts, 32, 12))
|
|
}
|
|
|