mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
527 B
TypeScript
35 lines
527 B
TypeScript
//// [tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts] ////
|
|
|
|
//// [stringNamedPropertyDuplicates.ts]
|
|
class C {
|
|
"a b": number;
|
|
"a b": number;
|
|
static "c d": number;
|
|
static "c d": number;
|
|
}
|
|
|
|
interface I {
|
|
"a b": number;
|
|
"a b": number;
|
|
}
|
|
|
|
var a: {
|
|
"a b": number;
|
|
"a b": number;
|
|
}
|
|
|
|
var b = {
|
|
"a b": 1
|
|
"a b": 1
|
|
}
|
|
|
|
//// [stringNamedPropertyDuplicates.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
var a;
|
|
var b = {
|
|
"a b": 1,
|
|
"a b": 1
|
|
};
|