2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////var x = [1, 2, 3];
|
2019-03-12 23:57:12 +01:00
|
|
|
////var /*y*/y = x.pop(/*1*/5/*2*/);
|
2014-07-13 01:04:16 +02:00
|
|
|
////
|
|
|
|
|
|
|
|
verify.errorExistsBetweenMarkers("1", "2");
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.numberOfErrorsInCurrentFile(1);
|
2018-05-03 22:04:08 +02:00
|
|
|
// Expected errors exact:
|
2014-07-13 01:04:16 +02:00
|
|
|
// - Supplied parameters do not match any signature of call target.
|
|
|
|
// - Could not select overload for 'call' expression.
|
|
|
|
|
2017-03-03 23:57:14 +01:00
|
|
|
verify.quickInfoAt("y", "var y: number");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.eof();
|
|
|
|
edit.insert("interface Array<T> { pop(def: T): T; }");
|
|
|
|
|
|
|
|
verify.not.errorExistsBetweenMarkers("1", "2");
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfoAt("y", "var y: number");
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.noErrors();
|