-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Fixed an issue with spreading a spreadable generic expression into generic JSX #51580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -28781,7 +28781,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { | |||
spread = getSpreadType(spread, createJsxAttributesType(), attributes.symbol, objectFlags, /*readonly*/ false); | |||
attributesTable = createSymbolTable(); | |||
} | |||
const exprType = getReducedType(checkExpressionCached(attributeDecl.expression, checkMode)); | |||
const exprType = getReducedType(checkExpressionCached(attributeDecl.expression)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this aligns the logic here for the equivalent call in the checkObjectLiteral
:
https://github.dev/microsoft/TypeScript/blob/4ea8ec49e8aed6601fb6b978fd08031ec058da04/src/compiler/checker.ts#L28541
note that neither of those lines were touched recently
tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to see some extended suites be green and this looks reasonable to me~
@typescript-bot run dt |
Heya @weswigham, I've started to run the diff-based top-repos suite on this PR at 1c00498. You can monitor the build here. Update: The results are in! |
Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 1c00498. You can monitor the build here. Update: The results are in! |
@weswigham Here are the results of running the top-repos suite comparing Everything looks good! |
Hey @weswigham, the results of running the DT tests are ready. |
This PR appears to have broken main via a baseline change. |
… into generic JSX (microsoft#51580)" This reverts commit 63495be.
This reverts commit 7f292bf.
fixes #51577