mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update baseline
This commit is contained in:
+7
-1
@@ -3,10 +3,12 @@ tests/cases/conformance/jsx/file.tsx(10,33): error TS2698: Spread types may only
|
||||
tests/cases/conformance/jsx/file.tsx(11,33): error TS2698: Spread types may only be created from object types.
|
||||
tests/cases/conformance/jsx/file.tsx(12,33): error TS2698: Spread types may only be created from object types.
|
||||
tests/cases/conformance/jsx/file.tsx(14,33): error TS2698: Spread types may only be created from object types.
|
||||
tests/cases/conformance/jsx/file.tsx(14,63): error TS2698: Spread types may only be created from object types.
|
||||
tests/cases/conformance/jsx/file.tsx(15,33): error TS2698: Spread types may only be created from object types.
|
||||
tests/cases/conformance/jsx/file.tsx(15,55): error TS2698: Spread types may only be created from object types.
|
||||
|
||||
|
||||
==== tests/cases/conformance/jsx/file.tsx (6 errors) ====
|
||||
==== tests/cases/conformance/jsx/file.tsx (8 errors) ====
|
||||
import React = require('react')
|
||||
|
||||
declare function OverloadComponent<U>(): JSX.Element;
|
||||
@@ -30,9 +32,13 @@ tests/cases/conformance/jsx/file.tsx(15,33): error TS2698: Spread types may only
|
||||
let a4 = <OverloadComponent />;
|
||||
let a5 = <OverloadComponent {...arg2} ignore-prop="hello" {...arg1} />;
|
||||
~~~~~~~~~
|
||||
!!! error TS2698: Spread types may only be created from object types.
|
||||
~~~~~~~~~
|
||||
!!! error TS2698: Spread types may only be created from object types.
|
||||
let a6 = <OverloadComponent {...arg2} ignore-prop {...arg1} />;
|
||||
~~~~~~~~~
|
||||
!!! error TS2698: Spread types may only be created from object types.
|
||||
~~~~~~~~~
|
||||
!!! error TS2698: Spread types may only be created from object types.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user