mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Fix issue #5810 doubled comment on functions in array literals
This commit is contained in:
14
tests/cases/compiler/arrayLiteralComments.ts
Normal file
14
tests/cases/compiler/arrayLiteralComments.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
var testArrayWithFunc = [
|
||||
// Function comment
|
||||
function() {
|
||||
let x = 1;
|
||||
},
|
||||
// String comment
|
||||
'1',
|
||||
// Numeric comment
|
||||
2,
|
||||
// Object comment
|
||||
{ a: 1 },
|
||||
// Array comment
|
||||
[1, 2, 3]
|
||||
]
|
||||
Reference in New Issue
Block a user