siroky/Payola — Issue #10: s2js: A parameterless method has to had an empty parenthesis after name
Author: teuzz
Created: 2012-02-28 12:08:13+00:00
State: open

If it has not, it doesn't compile into JS properly:

def getInitialGraph(): Graph = {} // works fine

def getInitialGraph: Graph = {} //error:

[error] {file:/Users/jirihelmich/dev/Payola/payola/}server/*:cp: java.lang.Exception: Dependency 'cz.payola.web.shared.GraphFetcher' declared in the file '/Users/jirihelmich/dev/Payola/payola/web/server/public/javascripts/client/cz/payola/web/client/presenters/Index.js' wasn't found.
[error] Total time: 27 s, completed Feb 28, 2012 1:07:59 PM