TypeScript/tests/cases/fourslash_old/completionListInvalidMemberNames.ts
2014-07-12 17:30:19 -07:00

25 lines
775 B
TypeScript

/// <reference path='fourslash.ts' />
////var x = {
//// "foo ": "space in the name",
//// "bar": "valid identifier name",
//// "break": "valid identifier name (matches a keyword)",
//// "any": "valid identifier name (matches a typescript keyword)",
//// "#": "invalid identifier name",
//// "$": "valid identifier name",
//// "\u0062": "valid unicode identifer name (b)",
//// "\u0031\u0062": "invalid unicode identifer name (1b)"
////};
////
////x./**/
goTo.marker();
verify.completionListContains("bar");
verify.completionListContains("break");
verify.completionListContains("any");
verify.completionListContains("$");
verify.completionListContains("\\u0062");
// Nothing else should show up
verify.memberListCount(5);