Skip to content

🤖 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

Conversation

typescript-bot
Copy link
Collaborator

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

@typescript-bot typescript-bot mentioned this pull request Jan 7, 2020
Copy link
Member

@weswigham weswigham left a 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.

@typescript-bot typescript-bot force-pushed the user-update-Microsoft-20200002-refs/heads/master branch 3 times, most recently from c87b6d7 to 55e5dd8 Compare January 7, 2020 11:28
@typescript-bot typescript-bot force-pushed the user-update-Microsoft-20200002-refs/heads/master branch from 55e5dd8 to 03359d5 Compare January 7, 2020 22:40
@sandersn
Copy link
Member

sandersn commented Jan 8, 2020

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.
Copy link
Member

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.

Copy link
Member

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

Copy link
Member

@sandersn sandersn left a 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.
Copy link
Member

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

@sandersn
Copy link
Member

sandersn commented Jan 9, 2020

It is #35659; only seems to affect JS signatures.

Copy link
Member

@sandersn sandersn left a 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.

@sandersn sandersn merged commit 21316e5 into microsoft:master Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants