29 lines
711 B
TypeScript
29 lines
711 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////class Foo {
|
|
//// doStuff(): number { return 0; }
|
|
//// static staticMethod() {}
|
|
////}
|
|
////module Foo {
|
|
//// export var x: number;
|
|
////}
|
|
////Foo/*c1*/; // should get "x", "prototype"
|
|
////var s: Foo/*c2*/; // no types, in Foo, so shouldnt have anything
|
|
////var f = new Foo();
|
|
////f/*c3*/;
|
|
|
|
goTo.marker("c1");
|
|
edit.insert(".");
|
|
verify.completionListContains("x");
|
|
verify.completionListContains("prototype");
|
|
verify.completionListContains("staticMethod");
|
|
|
|
goTo.marker("c2");
|
|
edit.insert(".");
|
|
verify.completionListIsEmpty();
|
|
|
|
goTo.marker("c3");
|
|
edit.insert(".");
|
|
verify.completionListContains("doStuff");
|
|
verify.completionListCount(1);
|