// @jsx: react /// import * as React from "react"; interface MyProps { x: number; } function MyComp4(props: MyProps, context: any, bad: any, verybad: any) { return
; } function MyComp3(props: MyProps, context: any, bad: any) { return
; } function MyComp2(props: MyProps, context: any) { return
} const a = ; // using `MyComp` as a component should error - it expects more arguments than react provides const b = ; // using `MyComp` as a component should error - it expects more arguments than react provides const c = ; // Should be OK, `context` is allowed, per react rules declare function MyTagWithOptionalNonJSXBits(props: MyProps, context: any, nonReactArg?: string): JSX.Element; const d = ; // Technically OK, but probably questionable