mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
377 B
TypeScript
21 lines
377 B
TypeScript
//// [tests/cases/compiler/duplicateIdentifierDifferentSpelling.ts] ////
|
|
|
|
//// [duplicateIdentifierDifferentSpelling.ts]
|
|
class A {
|
|
0b11 = '';
|
|
3 = '';
|
|
}
|
|
|
|
var X = { 0b11: '', 3: '' };
|
|
|
|
|
|
//// [duplicateIdentifierDifferentSpelling.js]
|
|
"use strict";
|
|
class A {
|
|
constructor() {
|
|
this[0b11] = '';
|
|
this[3] = '';
|
|
}
|
|
}
|
|
var X = { 0b11: '', 3: '' };
|