mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
360 B
TypeScript
18 lines
360 B
TypeScript
//// [tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithEnumIndexer.ts] ////
|
|
|
|
//// [assignmentCompatWithEnumIndexer.ts]
|
|
enum E {
|
|
A
|
|
}
|
|
|
|
let foo: Record<E, any> = {}
|
|
|
|
|
|
//// [assignmentCompatWithEnumIndexer.js]
|
|
"use strict";
|
|
var E;
|
|
(function (E) {
|
|
E[E["A"] = 0] = "A";
|
|
})(E || (E = {}));
|
|
let foo = {};
|