-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #60615 (fix missing react error with fragme...) into releas…
…e-5.7 (#60618) Co-authored-by: Isabel Duan <[email protected]>
- Loading branch information
1 parent
d701d90
commit 5d77da6
Showing
8 changed files
with
123 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/baselines/reference/jsxFragReactReferenceErrors(jsx=preserve).js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//// [tests/cases/compiler/jsxFragReactReferenceErrors.tsx] //// | ||
|
||
//// [jsxFragReactReferenceErrors.tsx] | ||
/// <reference path="/.lib/react18/react18.d.ts" /> | ||
/// <reference path="/.lib/react18/global.d.ts" /> | ||
export function Component(){ | ||
|
||
return <> | ||
</> | ||
} | ||
|
||
//// [jsxFragReactReferenceErrors.jsx] | ||
/// <reference path="react18/react18.d.ts" /> | ||
/// <reference path="react18/global.d.ts" /> | ||
export function Component() { | ||
return <> | ||
</>; | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/jsxFragReactReferenceErrors(jsx=preserve).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [tests/cases/compiler/jsxFragReactReferenceErrors.tsx] //// | ||
|
||
=== jsxFragReactReferenceErrors.tsx === | ||
/// <reference path="react18/react18.d.ts" /> | ||
/// <reference path="react18/global.d.ts" /> | ||
export function Component(){ | ||
>Component : Symbol(Component, Decl(jsxFragReactReferenceErrors.tsx, 0, 0)) | ||
|
||
return <> | ||
</> | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/baselines/reference/jsxFragReactReferenceErrors(jsx=preserve).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//// [tests/cases/compiler/jsxFragReactReferenceErrors.tsx] //// | ||
|
||
=== jsxFragReactReferenceErrors.tsx === | ||
/// <reference path="react18/react18.d.ts" /> | ||
/// <reference path="react18/global.d.ts" /> | ||
export function Component(){ | ||
>Component : () => JSX.Element | ||
> : ^^^^^^^^^^^^^^^^^ | ||
|
||
return <> | ||
><> </> : JSX.Element | ||
> : ^^^^^^^^^^^ | ||
|
||
</> | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/baselines/reference/jsxFragReactReferenceErrors(jsx=react-native).js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//// [tests/cases/compiler/jsxFragReactReferenceErrors.tsx] //// | ||
|
||
//// [jsxFragReactReferenceErrors.tsx] | ||
/// <reference path="/.lib/react18/react18.d.ts" /> | ||
/// <reference path="/.lib/react18/global.d.ts" /> | ||
export function Component(){ | ||
|
||
return <> | ||
</> | ||
} | ||
|
||
//// [jsxFragReactReferenceErrors.js] | ||
/// <reference path="react18/react18.d.ts" /> | ||
/// <reference path="react18/global.d.ts" /> | ||
export function Component() { | ||
return <> | ||
</>; | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/jsxFragReactReferenceErrors(jsx=react-native).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [tests/cases/compiler/jsxFragReactReferenceErrors.tsx] //// | ||
|
||
=== jsxFragReactReferenceErrors.tsx === | ||
/// <reference path="react18/react18.d.ts" /> | ||
/// <reference path="react18/global.d.ts" /> | ||
export function Component(){ | ||
>Component : Symbol(Component, Decl(jsxFragReactReferenceErrors.tsx, 0, 0)) | ||
|
||
return <> | ||
</> | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/baselines/reference/jsxFragReactReferenceErrors(jsx=react-native).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//// [tests/cases/compiler/jsxFragReactReferenceErrors.tsx] //// | ||
|
||
=== jsxFragReactReferenceErrors.tsx === | ||
/// <reference path="react18/react18.d.ts" /> | ||
/// <reference path="react18/global.d.ts" /> | ||
export function Component(){ | ||
>Component : () => JSX.Element | ||
> : ^^^^^^^^^^^^^^^^^ | ||
|
||
return <> | ||
><> </> : JSX.Element | ||
> : ^^^^^^^^^^^ | ||
|
||
</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @jsx: react-native, preserve | ||
// @strict: true | ||
// @skipLibCheck: true | ||
// @target: ES2017 | ||
// @module: ESNext | ||
// @esModuleInterop: true | ||
|
||
/// <reference path="/.lib/react18/react18.d.ts" /> | ||
/// <reference path="/.lib/react18/global.d.ts" /> | ||
export function Component(){ | ||
|
||
return <> | ||
</> | ||
} |