From 5347bab4e8724dd2a1518ea743c79033b0f7f935 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Fri, 23 Sep 2016 17:28:08 -0700 Subject: [PATCH] Add tests --- .../tsxCorrectlyParseLessThanComparison1.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/cases/conformance/jsx/tsxCorrectlyParseLessThanComparison1.tsx diff --git a/tests/cases/conformance/jsx/tsxCorrectlyParseLessThanComparison1.tsx b/tests/cases/conformance/jsx/tsxCorrectlyParseLessThanComparison1.tsx new file mode 100644 index 00000000000..87a3d2d12aa --- /dev/null +++ b/tests/cases/conformance/jsx/tsxCorrectlyParseLessThanComparison1.tsx @@ -0,0 +1,20 @@ +// @jsx: react +declare module JSX { + interface Element { + div: string; + } +} +declare namespace React { + class Component { + constructor(props?: P, context?: any); + props: P; + } +} + +export class ShortDetails extends React.Component<{ id: number }, {}> { + public render(): JSX.Element { + if (this.props.id < 1) { + return (
); + } + } +} \ No newline at end of file