Fix variable name collisions (#37761)

This commit is contained in:
Andrew Branch
2020-04-02 14:12:19 -08:00
committed by GitHub
parent 527f467926
commit 2187ba1f84
5 changed files with 35 additions and 24 deletions

View File

@@ -1113,7 +1113,16 @@ function rej(reject): a{
`
);
_testConvertToAsyncFunction("convertToAsyncFunction_ParameterNameCollision", `
async function foo<T>(x: T): Promise<T> {
return x;
}
function [#|bar|]<T>(x: T): Promise<T> {
return foo(x).then(foo)
}
`
);
_testConvertToAsyncFunction("convertToAsyncFunction_LocalReturn", `