TypeScript/tests/cases/fourslash/incrementalEditInvocationExpressionAboveInterfaceDeclaration.ts

15 lines
358 B
TypeScript
Raw Normal View History

2014-08-30 03:02:05 +02:00
/// <reference path="fourslash.ts" />
////declare function alert(message?: any): void;
/////*1*/
////interface Foo {
//// setISO8601(dString): Date;
////}
2014-08-30 03:02:05 +02:00
// Do resolve without typeCheck
goTo.marker('1');
edit.insert("alert(");
verify.signatureHelp({ text: "alert(message?: any): void" });
2014-08-30 03:02:05 +02:00
// TypeCheck
verify.errorExistsAfterMarker('1');