Coffee script code inspection inconsistency

Hi,

This code

_add = (type) =>
  type + 1
_add v for v in viewType

... genarates a code inspection warning "Invalid number of parameters, expected 1"

whereas, this does not
_add = (type) =>
  type + 1
_add(v) for v in viewType

They generate the same js, and afaik should not show any warning?
~gillbert

2 comments
Comment actions Permalink

Hello Gilbert, thank you for response. The issue was already fixed in IntelliJ IDEA 13. You could try it in the latest EAP.

0
Comment actions Permalink

Great, I will wait for the official release - will make a nice Christmas present

0

Please sign in to leave a comment.