ECMAScript 2015 Implicitly declared variable

Answered

I've set my language to ECMAScript 2015 (which eliminated a lot of false warnings), but ReSharper still says "implicitly declared variable" when I create objects from the new standard (e.g. new Set()). Is this a bug? Or have I misunderstood something?

 

1
3 comments

Hello Mike,

What R# version do you use (ReSharper | Help | About JB ReSharper Ultimate)? 

Have you tried to clear R# caches https://resharper-support.jetbrains.com/hc/en-us/articles/206546989-ReSharper-stopped-working-for-a-single-specific-solution?

Thanks!  

0
Avatar
Permanently deleted user

Hello Alexander,

I'm using ReSharper Ultimate 2016.2. I hadn't tried clearing the caches, but I did so just now and restarted as requested. Unfortunately, the problem persists (with Options->Code Editing->JavaScript->Inspections->JavaScript language level set to ECMAScript 2015). I'm curious if others can reproduce (e.g. with "var newSet = new Set();").

Thanks,

Mike.

1

Mike, 

Thanks a lot of checking and the reply. 

We reproduced the issue and file a new ticket to YouTrack https://youtrack.jetbrains.com/issue/RSRP-460570.

Thanks! 

0

Please sign in to leave a comment.