18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
////declare function alert(message?: any): void;
|
||
|
/////*1*/
|
||
|
////interface Foo {
|
||
|
//// setISO8601(dString): Date;
|
||
|
////}
|
||
|
|
||
|
diagnostics.setEditValidation(IncrementalEditValidation.None);
|
||
|
|
||
|
// Do resolve without typeCheck
|
||
|
goTo.marker('1');
|
||
|
edit.insert("alert(");
|
||
|
verify.currentSignatureHelpIs("alert(message?: any): void");
|
||
|
|
||
|
// TypeCheck
|
||
|
verify.errorExistsAfterMarker('1');
|