Added tests for const modifiers.

This commit is contained in:
Daniel Rosenwasser 2015-03-18 13:55:09 -07:00
parent 2f7db61f7c
commit ce3a91c186
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/// <reference path='fourslash.ts' />
////module m {
//// declare [|const|] x;
//// declare [|const|] enum E {
//// }
////}
////
////declare [|const|] x;
////declare [|const|] enum E {
////}
test.ranges().forEach(range => {
goTo.position(range.start);
verify.occurrencesAtPositionCount(0);
});

View File

@ -0,0 +1,16 @@
/// <reference path='fourslash.ts' />
////module m {
//// export [|const|] x;
//// export [|const|] enum E {
//// }
////}
////
////export [|const|] x;
////export [|const|] enum E {
////}
test.ranges().forEach(range => {
goTo.position(range.start);
verify.occurrencesAtPositionCount(0);
});

View File

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
////export const class C {
//// private static [|const|] foo;
//// constructor(public [|const|] foo) {
//// }
////}
test.ranges().forEach(range => {
goTo.position(range.start);
verify.occurrencesAtPositionCount(0);
});