TypeScript/tests/cases/fourslash/suggestionNoDuplicates.ts
Nathan Shively-Sanders 269c3d3a56
Suggestions now use diagnosticCollection (#32740)
Previously they used multiMaps, unlike all the other diagnostics. This
prevents duplicate suggestions, like other kinds diagnostics.

Fixes #28710
2019-08-06 11:15:06 -07:00

15 lines
439 B
TypeScript

// @strict: false
/// <reference path="fourslash.ts" />
// @Filename: foo.ts
//// import { f } from [|'m'|]
//// f
// @Filename: node_modules/m/index.js
//// module.exports.f = function (x) { return x }
verify.getSemanticDiagnostics([])
verify.getSuggestionDiagnostics([{
code: 7016,
message: "Could not find a declaration file for module 'm'. '/tests/cases/fourslash/node_modules/m/index.js' implicitly has an 'any' type.",
}])