mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
//// [tests/cases/compiler/crashInEmitTokenWithComment.ts] ////
|
|
|
|
//// [crashInEmitTokenWithComment.ts]
|
|
// GH#32358
|
|
const fn = (param: string) => undefined;
|
|
|
|
const foo = {bar: 'a'};
|
|
fn(({[foo.bar]: c}) => undefined);
|
|
|
|
//// [crashInEmitTokenWithComment.js]
|
|
"use strict";
|
|
// GH#32358
|
|
const fn = (param) => undefined;
|
|
const foo = { bar: 'a' };
|
|
fn(({ [foo.bar]: c }) => undefined);
|