2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// Reference to a class parameter.
|
|
|
|
|
|
|
|
////var p = 2;
|
|
|
|
////
|
|
|
|
////class p { }
|
|
|
|
////
|
|
|
|
////class foo {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// constructor ([|public [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}p|]: any|]) {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// public f(p) {
|
2017-09-13 18:02:33 +02:00
|
|
|
//// this.[|{| "isWriteAccess": true |}p|] = p;
|
2015-03-02 23:41:44 +01:00
|
|
|
//// }
|
|
|
|
////
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////var n = new foo(undefined);
|
2017-09-13 18:02:33 +02:00
|
|
|
////n.[|{| "isWriteAccess": true |}p|] = null;
|
2015-03-02 23:41:44 +01:00
|
|
|
|
2019-06-05 23:10:51 +02:00
|
|
|
verify.singleReferenceGroup("(property) foo.p: any", "p");
|