// @filename: file.tsx // @jsx: react // @noLib: true // @skipLibCheck: true // @target: es2015 // @moduleResolution: node // @libFiles: react.d.ts,lib.d.ts import * as React from "react"; declare global { namespace JSX { interface IntrinsicElements { "a-b": any; "a-c": any; } } } const Compa = (x: {x: number}) =>
{"" + x}
; let a = <\u0061>; // works let ab = <\u0061-b>; // works let ac = ; // works let compa = ; // works let a2 = <\u{0061}>; // works let ab2 = <\u{0061}-b>; // works let ac2 = ; // works let compa2 = ; // works