Skip to content

Commit ce3a91c

Browse files
Added tests for const modifiers.
1 parent 2f7db61 commit ce3a91c

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////module m {
4+
//// declare [|const|] x;
5+
//// declare [|const|] enum E {
6+
//// }
7+
////}
8+
////
9+
////declare [|const|] x;
10+
////declare [|const|] enum E {
11+
////}
12+
13+
test.ranges().forEach(range => {
14+
goTo.position(range.start);
15+
verify.occurrencesAtPositionCount(0);
16+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////module m {
4+
//// export [|const|] x;
5+
//// export [|const|] enum E {
6+
//// }
7+
////}
8+
////
9+
////export [|const|] x;
10+
////export [|const|] enum E {
11+
////}
12+
13+
test.ranges().forEach(range => {
14+
goTo.position(range.start);
15+
verify.occurrencesAtPositionCount(0);
16+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////export const class C {
4+
//// private static [|const|] foo;
5+
//// constructor(public [|const|] foo) {
6+
//// }
7+
////}
8+
9+
test.ranges().forEach(range => {
10+
goTo.position(range.start);
11+
verify.occurrencesAtPositionCount(0);
12+
});

0 commit comments

Comments
 (0)