TypeScript/tests/cases/fourslash/completionsDotInObjectLiteral.ts
Andy 54a5be1860
At '.' in object literal, don't close the object (#27850)
* At '.' in object literal, don't close the object

* Include diagnostics test
2018-10-12 08:49:04 -07:00

11 lines
308 B
TypeScript

/// <reference path="fourslash.ts" />
////const o = {
//// a: 1,
//// [|.|]/**/
////[|}|];
verify.getSyntacticDiagnostics(test.ranges().map((range): FourSlashInterface.Diagnostic =>
({ code: 1003, message: "Identifier expected.", range })));
verify.completions({ marker: "", exact: undefined });