bef1f9e87f
Previously, it only check for object and any types. This was the old check, so this change updates it to use isValidSpreadType.
25 lines
379 B
Plaintext
25 lines
379 B
Plaintext
=== tests/cases/compiler/spreadIntersectionJsx.tsx ===
|
|
const React: any = null;
|
|
>React : any
|
|
>null : null
|
|
|
|
class A { a; }
|
|
>A : A
|
|
>a : any
|
|
|
|
class C { c; }
|
|
>C : C
|
|
>c : any
|
|
|
|
let intersected: A & C;
|
|
>intersected : A & C
|
|
>A : A
|
|
>C : C
|
|
|
|
let element = <div { ...intersected } />;
|
|
>element : any
|
|
><div { ...intersected } /> : any
|
|
>div : any
|
|
>intersected : A & C
|
|
|