TypeScript/tests/cases/fourslash/memberListInWithBlock.ts
2014-09-15 13:55:18 -07:00

25 lines
650 B
TypeScript

/// <reference path='fourslash.ts'/>
////class c {
//// static x: number;
//// public foo() {
//// with ({}) {
//// function f() { }
//// var d = this./*1*/foo;
//// /*2*/
//// }
//// }
////}
goTo.marker('1');
verify.memberListIsEmpty();
goTo.marker('2');
// Only keywords should show in completion, no members or types
verify.not.completionListContains("foo");
verify.not.completionListContains("f");
verify.not.completionListContains("c");
verify.not.completionListContains("d");
verify.not.completionListContains("x");
verify.not.completionListContains("Object");