Skip to content

Remove circularity fallback deferral in getConditionalType#30470

Merged
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:remove-conditional-type-reentrancy-check
Mar 18, 2019
Merged

Remove circularity fallback deferral in getConditionalType#30470
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:remove-conditional-type-reentrancy-check

Conversation

@weswigham
Copy link
Copy Markdown
Member

Per commentary in #30443, this reverts the code change in #30375, but keeps the new test.

@weswigham weswigham requested a review from ahejlsberg March 18, 2019 21:26
@weswigham
Copy link
Copy Markdown
Member Author

@typescript-bot run dt

@typescript-bot
Copy link
Copy Markdown
Collaborator

typescript-bot commented Mar 18, 2019

Heya @weswigham, I've started to run the Definitely Typed test suite on this PR at c6df72c. You can monitor the build here. It should now contribute to this PR's status checks.

@weswigham
Copy link
Copy Markdown
Member Author

DT failure is in ramda:

Error in ramda
Error: /home/vsts/work/1/s/dtslint-runner/DefinitelyTyped/types/ramda/ramda-tests.ts:970:26
ERROR: 970:26  expect  TypeScript@local compile error: 
Argument of type '<T>(obj: Record<"id", T>) => T' is not assignable to parameter of type '(a: Record<"id", T>) => string'.
  Type 'T' is not assignable to type 'string'.

    at /home/vsts/work/1/s/dtslint-runner/node_modules/dtslint/bin/index.js:210:19
    at Generator.next (<anonymous>)
    at fulfilled (/home/vsts/work/1/s/dtslint-runner/node_modules/dtslint/bin/index.js:5:58)
The following packages had errors: ramda
FAILED

It's the const a2 = R.indexBy(R.prop("id"))(list); - which looks like the last error left in ramda after today's fix (which I think the author already said might be due to some incorrect types in ramda, rather than a fault on our part - I haven't looked into this one, though).

In any case, not the fault of reverting this, so I'm going to merge this.

@weswigham weswigham merged commit 9e28a81 into microsoft:master Mar 18, 2019
@weswigham weswigham deleted the remove-conditional-type-reentrancy-check branch March 18, 2019 23:35
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants