2016-11-08 20:07:17 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//@Filename: file.tsx
|
|
|
|
//// declare module JSX {
|
|
|
|
//// interface Element { }
|
|
|
|
//// interface IntrinsicElements {
|
|
|
|
//// }
|
|
|
|
//// interface ElementAttributesProperty { props }
|
|
|
|
//// }
|
|
|
|
//// class MyClass {
|
|
|
|
//// props: {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}name|]?: string;|]
|
2016-11-08 20:07:17 +01:00
|
|
|
//// size?: number;
|
|
|
|
//// }
|
2018-05-07 19:08:38 +02:00
|
|
|
////
|
|
|
|
////
|
2019-06-13 21:25:02 +02:00
|
|
|
//// var x = <MyClass [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}name|]='hello'|]/>;
|
2016-11-08 20:07:17 +01:00
|
|
|
|
2019-06-05 23:10:51 +02:00
|
|
|
verify.singleReferenceGroup("(property) name?: string", "name");
|