mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Fix variable name collisions (#37761)
This commit is contained in:
@@ -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", `
|
||||
|
||||
Reference in New Issue
Block a user