mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +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)
|