TypeScript/tests/cases/fourslash/formattingSpaceBetweenOptionalChaining.ts
2019-10-07 17:11:54 -07:00

11 lines
261 B
TypeScript

/// <reference path='fourslash.ts' />
/////*1*/a ?. b ?. c . d;
/////*2*/o . m() ?. length;
format.document();
goTo.marker("1");
verify.currentLineContentIs("a?.b?.c.d;");
goTo.marker("2");
verify.currentLineContentIs("o.m()?.length;");