Skip to content

Commit

Permalink
Add failing test for generic JSX quick info microsoft#22636
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed Apr 14, 2018
1 parent 23ed9f8 commit 75812b3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/cases/fourslash/quickInfoJsxGenericFunctionProp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// <reference path="fourslash.ts" />

//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// }
//// interface ElementAttributesProperty { props }
//// }
//// interface Props<T> {
//// items: T[];
//// renderItem: (item: T) => string;
//// }
//// class Component<T> {
//// props: Props<T>;
//// }
//// var c = <Component items={[0, 1, 2]} render/*0*/Item={it/*1*/em => item.toFixed()}

verify.quickInfoAt("0", "(JSX Attribute) renderItem: (item: number) => string");
verify.quickInfoAt("1", "(parameter) item: number");

0 comments on commit 75812b3

Please sign in to comment.