Title: `@lib: ES6` on fourslash test case breaks tests · Issue #15978 · microsoft/TypeScript · GitHub
Open Graph Title: `@lib: ES6` on fourslash test case breaks tests · Issue #15978 · microsoft/TypeScript
X Title: `@lib: ES6` on fourslash test case breaks tests · Issue #15978 · microsoft/TypeScript
Description: TypeScript Version: master Repro: Insert // @lib: ES6 on test/fourslash/commentsFunctionExpression.ts Run jake runtests t=commentsFunctionExpression Expected behavior: The test should run well Actual behavior: Numbers unexpectedly become...
Open Graph Description: TypeScript Version: master Repro: Insert // @lib: ES6 on test/fourslash/commentsFunctionExpression.ts Run jake runtests t=commentsFunctionExpression Expected behavior: The test should run well Actu...
X Description: TypeScript Version: master Repro: Insert // @lib: ES6 on test/fourslash/commentsFunctionExpression.ts Run jake runtests t=commentsFunctionExpression Expected behavior: The test should run well Actu...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15978
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@lib: ES6` on fourslash test case breaks tests","articleBody":"**TypeScript Version:** master\r\n\r\n**Repro:**\r\n\r\n1. Insert `// @lib: ES6` on `test/fourslash/commentsFunctionExpression.ts`\r\n2. Run `jake runtests t=commentsFunctionExpression`\r\n\r\n**Expected behavior:**\r\n\r\nThe test should run well\r\n\r\n**Actual behavior:**\r\n\r\nNumbers unexpectedly becomes `any`:\r\n\r\n`AssertionError: At 14: quick info text: expected 'var assigned: (s: string) =\u003e any' to equal 'var assigned: (s: string) =\u003e number'`\r\n\r\nProbably the test code does not correctly check `/// \u003creference /\u003e` comment in lib.d.ts files but not sure how can it be fixed.","author":{"url":"https://github.com/saschanaz","@type":"Person","name":"saschanaz"},"datePublished":"2017-05-21T10:25:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/15978/TypeScript/issues/15978"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f2b72541-a113-4dcd-1ea9-264ff34eefa5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E720:1F3A67:551565:720CAF:6A629B29 |
| html-safe-nonce | cc4f44a4d015b226547ff1bf05852aef6545410aa5f9e06010441d08cc1da05e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzIwOjFGM0E2Nzo1NTE1NjU6NzIwQ0FGOjZBNjI5QjI5IiwidmlzaXRvcl9pZCI6IjcwMDM2OTUyNDc0MzM4MzMyNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 16ce8cf1673b7b784a91aa114b39cee72d561b86e335eeece69316d0076aaaa9 |
| hovercard-subject-tag | issue:230211325 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/15978/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4dd4ca00b044002056f0711e2cb420532bee4ddcb334a08ff6c240cebf9d3995/microsoft/TypeScript/issues/15978 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4dd4ca00b044002056f0711e2cb420532bee4ddcb334a08ff6c240cebf9d3995/microsoft/TypeScript/issues/15978 |
| og:image:alt | TypeScript Version: master Repro: Insert // @lib: ES6 on test/fourslash/commentsFunctionExpression.ts Run jake runtests t=commentsFunctionExpression Expected behavior: The test should run well Actu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saschanaz |
| hostname | github.com |
| expected-hostname | github.com |
| None | a6443033349a18134b517627f043d4a59a5110337b879810c7229c2c7e28eda0 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d6c6cacbe32d3ddfd1796fbd1a39b8fb47b87daf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width