mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixes #20527
This commit is contained in:
1 parent
2cf7295c4e
commit
b7b43fe601
2 files changed
+11
No files matched your search
@@ -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