othree/tern-coffee

Can't infer a type in simple code

Closed this issue · 1 comments

Here's my test code:

obj =
    hello: 'world'
    num: 10

obj.hello

Which compiles into this JavaScript:

// Generated by CoffeeScript 1.6.1
(function() {
  var obj;

  obj = {
    hello: 'world',
    num: 10
  };

  obj.hello;

}).call(this);

Trying to request the type of obj.hello in CoffeeScript returns unknown type.

Just test.
I think you miss the .tern-project file part in installation guide.
Plugins always require this file to active.