Files
tsgo/testdata/baselines/reference/submodule/compiler/arrayLiteralComments.js

35 lines
612 B
TypeScript

//// [tests/cases/compiler/arrayLiteralComments.ts] ////
//// [arrayLiteralComments.ts]
var testArrayWithFunc = [
// Function comment
function() {
let x = 1;
},
// String comment
'1',
// Numeric comment
2,
// Object comment
{ a: 1 },
// Array comment
[1, 2, 3]
]
//// [arrayLiteralComments.js]
"use strict";
var testArrayWithFunc = [
// Function comment
function () {
let x = 1;
},
// String comment
'1',
// Numeric comment
2,
// Object comment
{ a: 1 },
// Array comment
[1, 2, 3]
];