Skip to content

Commit 13900aa

Browse files
author
Andy
committed
Merge pull request microsoft#8863 from Microsoft/navbar_readonly_property
Add tests for private and readonly parameter properties in navbar
2 parents e9de47f + f3d1b46 commit 13900aa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path="fourslash.ts"/>
22

33
////class List<T> {
4-
//// constructor(public a: boolean, public b: T, c: number) {
4+
//// constructor(public a: boolean, private b: T, readonly c: string, d: number) {
55
//// var local = 0;
66
//// }
77
////}
@@ -33,7 +33,11 @@ verify.navigationBar([
3333
{
3434
"text": "b",
3535
"kind": "property",
36-
"kindModifiers": "public"
36+
"kindModifiers": "private"
37+
},
38+
{
39+
"text": "c",
40+
"kind": "property"
3741
}
3842
],
3943
"indent": 1

0 commit comments

Comments
 (0)