mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
12 lines
198 B
TypeScript
12 lines
198 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: preserve
|
|
//@noImplicitAny: true
|
|
declare module JSX {
|
|
}
|
|
|
|
interface Obj1 {
|
|
new(n: string): {};
|
|
}
|
|
var obj1: Obj1;
|
|
<obj1 x={10} />; // Error (JSX.Element is implicit any)
|