mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixes #20527
This commit is contained in:
@@ -71,6 +71,10 @@ namespace ts.codefix {
|
||||
}
|
||||
|
||||
const containingFunction = getContainingFunction(token);
|
||||
if (containingFunction === undefined) {
|
||||
// Possible in certain syntax error cases
|
||||
return undefined;
|
||||
}
|
||||
switch (errorCode) {
|
||||
// Variable and Property declarations
|
||||
case Diagnostics.Member_0_implicitly_has_an_1_type.code:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noImplicitAny: true
|
||||
//// function ...q) {}} f(10);
|
||||
|
||||
verify.not.codeFixAvailable([]);
|
||||
|
||||
Reference in New Issue
Block a user