<p dir="auto"><code class="notranslate">assert.strictEqual(false, anyArgument)</code> triggers unreachable code error for any code below <strong>after the recent @types/node update</strong>. This <strong>only</strong> reproduces with <code class="notranslate">@types/node</code> 10.17.24, 12.12.41, 13.13.8 (published recently).</p>
<p dir="auto">Note that it only reproduces with <code class="notranslate">false</code> as a value being checked. Replace it with anything else and it will compile.</p>
<p dir="auto">This looks to me like a <code class="notranslate">tsc</code> problem rather than types problem (I reported it in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622163026" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/38699" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/38699/hovercard" href="https://github.com/microsoft/TypeScript/issues/38699">microsoft/TypeScript#38699</a>) but the fastest fix would be rolling back the <code class="notranslate">@types/node</code> changes, so I'm duplicating the issue here as well.</p>
<p dir="auto"><strong>TypeScript Version:</strong>  3.9.3, also reproduces on 3.8.x</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as assert from 'assert';

const b = false;
assert.strictEqual(false, b);
console.log('really unreachable?');"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">assert</span> <span class="pl-k">from</span> <span class="pl-s">'assert'</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-s1">assert</span><span class="pl-kos">.</span><span class="pl-en">strictEqual</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'really unreachable?'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong> should compile with <code class="notranslate">--allowUnreachableCode false</code>.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npx tsc --allowUnreachableCode false src/index.ts 
src/index.ts:5:1 - error TS7027: Unreachable code detected.

5 console.log('really unreachable?');
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error."><pre class="notranslate"><code class="notranslate">$ npx tsc --allowUnreachableCode false src/index.ts 
src/index.ts:5:1 - error TS7027: Unreachable code detected.

5 console.log('really unreachable?');
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error.
</code></pre></div>
<p dir="auto">This looks to be directly caused by recent releases of <code class="notranslate">@types/node</code> with this commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/DefinitelyTyped/DefinitelyTyped/commit/e9103792668257b6cc86cd21d6c455ecb5fae1ea/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/commit/e9103792668257b6cc86cd21d6c455ecb5fae1ea"><tt>e910379</tt></a> included.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>.  (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/G-Rath/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/G-Rath">@G-Rath</a> as a commit author</li>
</ul>
</li>
</ul>
<p dir="auto">Currently, in a team project, a team member of mine is wanting to use the "SliderObject" interface as a type for certain instance variables and method return types. When I export the interface it works (when I don't already have jQuery being imported in my build). If I already have jQuery being imported, I get duplicate jQuery identifier errors.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19267619/40274307-6ee5f092-5ba1-11e8-9493-1382e140a45e.png"><img src="https://user-images.githubusercontent.com/19267619/40274307-6ee5f092-5ba1-11e8-9493-1382e140a45e.png" alt="image" style="max-width: 100%;"></a>.</p>
<p dir="auto">What are we doing wrong?</p>
<p dir="auto">FYI, of course changing the type to any will allow the build to work but this does not allow the next developer to understand what type the previous developer was truly working with.</p>