2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////var f: Function;
|
|
|
|
////function g() { }
|
|
|
|
////
|
|
|
|
////class C {
|
|
|
|
//// h: () => void ;
|
|
|
|
//// i(): number { return 5; }
|
|
|
|
//// static j = (e) => e;
|
|
|
|
//// static k() { return 'hi';}
|
|
|
|
////}
|
|
|
|
////var l = () => void 0;
|
|
|
|
////var z = new C;
|
|
|
|
////
|
|
|
|
////f./*1*/apply(this, [1]);
|
|
|
|
////g./*2*/arguments;
|
|
|
|
////z.h./*3*/bind(undefined, 1, 2);
|
|
|
|
////z.i./*4*/call(null)
|
|
|
|
////C.j./*5*/length === 1;
|
|
|
|
////typeof C.k./*6*/caller === 'function';
|
|
|
|
////l./*7*/prototype = Object.prototype;
|
|
|
|
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.noErrors();
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{ marker: ["1", "2", "3", "4", "5", "6"], exact: completion.functionMembersWithPrototype },
|
|
|
|
{ marker: "7", exact: ["prototype", ...completion.functionMembers] },
|
|
|
|
);
|