TypeScript/tests/cases/fourslash/noSuggestionDiagnosticsOnParseError.ts
Nathan Shively-Sanders 60efb65931
infer-from-usage suggestions can't be ignored, and always do something when invoked. (#28206)
* Do not ts-ignore noImplicitAny suggestions

Still need to write tests.

* Add tests

* More tests

* Update baselines
2018-10-29 13:23:33 -07:00

17 lines
400 B
TypeScript

/// <reference path='fourslash.ts' />
// @Filename: /a.ts
////export {};
////const a = 1 d;
// Only give suggestions for nodes that do NOT have parse errors
verify.getSuggestionDiagnostics([{
message: "Variable 'd' implicitly has an 'any' type, but a better type may be inferred from usage.",
code: 7043,
range: {
fileName: "/a.ts",
pos: 23,
end: 24,
}
}]);