//@filename: file.tsx //@jsx: react declare module JSX { interface Element { } interface IntrinsicElements { [s: string]: any; } } declare var React: any; // THIS FILE HAS TEST-SIGNIFICANT LEADING/TRAILING // WHITESPACE, DO NOT RUN 'FORMAT DOCUMENT' ON IT var p = 0; // Emit " "
; // Emit " ", p, " "
{p}
; // Emit only p
{p}
; // Emit only p
{p}
; // Emit " 3"
3
; // Emit " 3 "
3
; // Emit "3"
3
; // Emit no args
; // Emit "foo bar"
foo bar
; // Emit "hello\\ world"
hello\ world
; // Emit " a b c d "
a b c d
;