TypeScript/tests/cases/fourslash/tsxGoToDefinitionClasses.ts

23 lines
539 B
TypeScript
Raw Normal View History

2015-06-18 23:02:47 +02:00
/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements { }
//// interface ElementAttributesProperty { props; }
//// }
//// class /*ct*/MyClass {
2015-06-18 23:02:47 +02:00
//// props: {
//// /*pt*/foo: string;
//// }
//// }
2017-10-19 00:49:46 +02:00
//// var x = <[|My/*c*/Class|] />;
//// var y = <MyClass [|f/*p*/oo|]= 'hello' />;
//// var z = <[|MyCl/*w*/ass|] wrong= 'hello' />;
2015-06-18 23:02:47 +02:00
verify.goToDefinition({
c: "ct",
2016-11-08 20:07:17 +01:00
p: "pt",
w: "ct"
});