mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
569 B
TypeScript
38 lines
569 B
TypeScript
// @noEmit: true
|
|
|
|
// https://github.com/microsoft/typescript-go/issues/3613
|
|
|
|
interface EntityMetadata1 {
|
|
get tableName(): string;
|
|
set tableName(name: string);
|
|
}
|
|
|
|
interface EntityMetadata1 {
|
|
tableName: string;
|
|
}
|
|
|
|
interface EntityMetadata2 {
|
|
tableName: string;
|
|
}
|
|
|
|
interface EntityMetadata2 {
|
|
get tableName(): string;
|
|
set tableName(name: string);
|
|
}
|
|
|
|
class Foo1 {
|
|
accessor x: string = "abc"
|
|
}
|
|
|
|
interface Foo1 {
|
|
x: string
|
|
}
|
|
|
|
interface Foo2 {
|
|
x: string
|
|
}
|
|
|
|
class Foo2 {
|
|
accessor x: string = "abc"
|
|
}
|