<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ikourfaln/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ikourfaln">@ikourfaln</a> on May 18, 2016 11:4</em></p>
<ul dir="auto">
<li>VSCode Version: 1.1.1</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<p dir="auto">if we have two or more functions with the same name, there is no syntax highlighting error !!</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9744226/15356433/8dca48ce-1cf0-11e6-83d7-a099d7e9839f.png"><img src="https://cloud.githubusercontent.com/assets/9744226/15356433/8dca48ce-1cf0-11e6-83d7-a099d7e9839f.png" alt="sans titre" style="max-width: 100%;"></a></p>
<p dir="auto">is this feature not yet available in the language services or I miss samething here ?</p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155474000" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6479" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6479/hovercard" href="https://github.com/microsoft/vscode/issues/6479">microsoft/vscode#6479</a></em></p>
<p dir="auto">Hi,<br>
The following valid js code compile with TS2362 error</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let start = new Date();
let elapsed = new Date() - start;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">elapsed</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">-</span> <span class="pl-s1">start</span><span class="pl-kos">;</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index.ts(9,22): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
index.ts(9,37): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."><pre class="notranslate"><code class="notranslate">index.ts(9,22): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
index.ts(9,37): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
</code></pre></div>
<p dir="auto">To avoid the error i need to explicitely cast opreands wit <code class="notranslate">&lt;any&gt;</code>.</p>