TypeScript/tests/cases/fourslash/functionTypes.ts
2014-07-29 12:17:44 -07:00

35 lines
978 B
TypeScript

/// <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;
verify.numberOfErrorsInCurrentFile(0);
for (var i = 1; i <= 7; i++) {
goTo.marker('' + i);
verify.memberListCount(7);
verify.completionListContains('apply');
verify.completionListContains('arguments');
verify.completionListContains('bind');
verify.completionListContains('call');
verify.completionListContains('length');
verify.completionListContains('caller');
verify.completionListContains('prototype');
}