Add test for call (#48015)

This commit is contained in:
Jake Bailey 2022-03-03 09:40:10 -08:00 committed by GitHub
parent 06d426c966
commit 112dd24ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 0 deletions

View File

@ -4,6 +4,8 @@ let b: any = /*[[${something}]]*/ {};
let c: { hoge: boolean } = /*[[${something}]]*/ { hoge: true };
let d: any /*[[${something}]]*/ = {};
let e/*[[${something}]]*/: any = {};
let f = /* comment1 */ d(e);
let g: any = /* comment2 */ d(e);
//// [emitOneLineVariableDeclarationRemoveCommentsFalse.js]
@ -12,3 +14,5 @@ var b = /*[[${something}]]*/ {};
var c = /*[[${something}]]*/ { hoge: true };
var d /*[[${something}]]*/ = {};
var e /*[[${something}]]*/ = {};
var f = /* comment1 */ d(e);
var g = /* comment2 */ d(e);

View File

@ -16,3 +16,13 @@ let d: any /*[[${something}]]*/ = {};
let e/*[[${something}]]*/: any = {};
>e : Symbol(e, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 4, 3))
let f = /* comment1 */ d(e);
>f : Symbol(f, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 5, 3))
>d : Symbol(d, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 3, 3))
>e : Symbol(e, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 4, 3))
let g: any = /* comment2 */ d(e);
>g : Symbol(g, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 6, 3))
>d : Symbol(d, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 3, 3))
>e : Symbol(e, Decl(emitOneLineVariableDeclarationRemoveCommentsFalse.ts, 4, 3))

View File

@ -22,3 +22,15 @@ let e/*[[${something}]]*/: any = {};
>e : any
>{} : {}
let f = /* comment1 */ d(e);
>f : any
>d(e) : any
>d : any
>e : any
let g: any = /* comment2 */ d(e);
>g : any
>d(e) : any
>d : any
>e : any

View File

@ -5,3 +5,5 @@ let b: any = /*[[${something}]]*/ {};
let c: { hoge: boolean } = /*[[${something}]]*/ { hoge: true };
let d: any /*[[${something}]]*/ = {};
let e/*[[${something}]]*/: any = {};
let f = /* comment1 */ d(e);
let g: any = /* comment2 */ d(e);