-
Notifications
You must be signed in to change notification settings - Fork 12.9k
🤖 User test baselines have changed for refs/heads/master #36046
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
🤖 User test baselines have changed for refs/heads/master #36046
Conversation
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.
@sandersn if you think the current changes look good to your knowledge, too (esp the js arity things in lodash), I think we can accept these.
c87b6d7
to
55e5dd8
Compare
55e5dd8
to
03359d5
Compare
I'll take a look. |
@@ -29,6 +30,7 @@ node_modules/lodash/_asciiWords.js(8,20): error TS8024: JSDoc '@param' tag has n | |||
node_modules/lodash/_baseClone.js(91,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | |||
node_modules/lodash/_baseClone.js(92,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | |||
node_modules/lodash/_baseClone.js(93,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | |||
node_modules/lodash/_baseClone.js(114,18): error TS2554: Expected 0 arguments, but got 1. |
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.
The type of function expressions in conditional expressions has changed. Might be ones that are initialisers of variable decls with jsdoc, not sure yet.
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.
Here's a repro. I guess we changed our rules for unioning signatures recently.
var noop = () => { };
/**
* @returns {void}
*/
var createSet = !!false ? noop : function(values) {
};
createSet(1) // error before, fine now
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.
Let's hold the change until I figure out which commit caused it. I'm not sure it's wrong, just unexpected to me.
@@ -29,6 +30,7 @@ node_modules/lodash/_asciiWords.js(8,20): error TS8024: JSDoc '@param' tag has n | |||
node_modules/lodash/_baseClone.js(91,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | |||
node_modules/lodash/_baseClone.js(92,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | |||
node_modules/lodash/_baseClone.js(93,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | |||
node_modules/lodash/_baseClone.js(114,18): error TS2554: Expected 0 arguments, but got 1. |
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.
Here's a repro. I guess we changed our rules for unioning signatures recently.
var noop = () => { };
/**
* @returns {void}
*/
var createSet = !!false ? noop : function(values) {
};
createSet(1) // error before, fine now
It is #35659; only seems to affect JS signatures. |
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.
Talked to Anders and the new behaviour is fine; the old behaviour was random based on which function came first in the source file.
This test run was triggerd by a request on #33716
Please review the diff and merge if no changes are unexpected.
You can view the build log here.
cc @microsoft/typescript