TypeScript/tests/cases/fourslash/formattingOnConstructorSignature.ts

9 lines
305 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
/////*1*/interface Gourai { new () {} }
/////*2*/type Stylet = { new () {} }
format.document();
goTo.marker("1");
2017-06-19 20:13:58 +02:00
verify.currentLineContentIs("interface Gourai { new() { } }");
goTo.marker("2");
2017-06-19 20:13:58 +02:00
verify.currentLineContentIs("type Stylet = { new() { } }");