This commit is contained in:
Ryan Cavanaugh
2017-12-07 12:39:16 -08:00
parent 2cf7295c4e
commit b7b43fe601
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -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([]);