TypeScript/tests/cases/fourslash/tsxGoToDefinitionClasses.ts

23 lines
527 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;
//// }
//// }
//// var x = <My/*c*/Class />;
//// var y = <MyClass f/*p*/oo= 'hello' />;
2016-11-08 20:07:17 +01:00
//// 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"
});